Class EventPayload

java.lang.Object
com.datadog.api.client.v2.model.EventPayload

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventPayload extends Object
Event attributes.
  • Field Details

  • Constructor Details

  • Method Details

    • aggregationKey

      public EventPayload aggregationKey(String aggregationKey)
    • getAggregationKey

      @Nullable public String getAggregationKey()
      A string used for aggregation when correlating events. If you specify a key, events are deduplicated to alerts based on this key. Limited to 100 characters.
      Returns:
      aggregationKey
    • setAggregationKey

      public void setAggregationKey(String aggregationKey)
    • attributes

      public EventPayload attributes(EventPayloadAttributes attributes)
    • getAttributes

      public EventPayloadAttributes getAttributes()
      JSON object for category-specific attributes. Schema is different per event category.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(EventPayloadAttributes attributes)
    • category

      public EventPayload category(EventCategory category)
    • getCategory

      public EventCategory getCategory()
      Event category identifying the type of event.
      Returns:
      category
    • setCategory

      public void setCategory(EventCategory category)
    • host

      public EventPayload host(String host)
    • getHost

      @Nullable public String getHost()
      Host name to associate with the event. Any tags associated with the host are also applied to this event. Limited to 255 characters.
      Returns:
      host
    • setHost

      public void setHost(String host)
    • integrationId

      public EventPayload integrationId(EventPayloadIntegrationId integrationId)
    • getIntegrationId

      @Nullable public EventPayloadIntegrationId getIntegrationId()
      Integration ID sourced from integration manifests.
      Returns:
      integrationId
    • setIntegrationId

      public void setIntegrationId(EventPayloadIntegrationId integrationId)
    • message

      public EventPayload message(String message)
    • getMessage

      @Nullable public String getMessage()
      Free formed text associated with the event. It's suggested to use data.attributes.attributes.custom for well-structured attributes. Limited to 4000 characters.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • tags

      public EventPayload tags(List<String> tags)
    • addTagsItem

      public EventPayload addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      A list of tags associated with the event. Maximum of 100 tags allowed. Refer to Tags docs.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • timestamp

      public EventPayload timestamp(String timestamp)
    • getTimestamp

      @Nullable public String getTimestamp()
      Timestamp when the event occurred. Must follow ISO 8601 format. For example "2017-01-15T01:30:15.010000Z". Defaults to the timestamp of receipt. Limited to values no older than 18 hours.
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(String timestamp)
    • title

      public EventPayload title(String title)
    • getTitle

      public String getTitle()
      The title of the event. Limited to 500 characters.
      Returns:
      title
    • setTitle

      public void setTitle(String title)
    • equals

      public boolean equals(Object o)
      Return true if this EventPayload object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object