Class EventCreateRequest

java.lang.Object
com.datadog.api.client.v1.model.EventCreateRequest

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventCreateRequest extends Object
Object representing an event.
  • Field Details

  • Constructor Details

    • EventCreateRequest

      public EventCreateRequest()
    • EventCreateRequest

      public EventCreateRequest(String text, String title)
  • Method Details

    • aggregationKey

      public EventCreateRequest aggregationKey(String aggregationKey)
    • getAggregationKey

      @Nullable public String getAggregationKey()
      An arbitrary string to use for aggregation. Limited to 100 characters. If you specify a key, all events using that key are grouped together in the Event Stream.
      Returns:
      aggregationKey
    • setAggregationKey

      public void setAggregationKey(String aggregationKey)
    • alertType

      public EventCreateRequest alertType(EventAlertType alertType)
    • getAlertType

      @Nullable public EventAlertType getAlertType()
      If an alert event is enabled, set its type. For example, error, warning , info, success, user_update, recommendation, and snapshot.
      Returns:
      alertType
    • setAlertType

      public void setAlertType(EventAlertType alertType)
    • dateHappened

      public EventCreateRequest dateHappened(Long dateHappened)
    • getDateHappened

      @Nullable public Long getDateHappened()
      POSIX timestamp of the event. Must be sent as an integer (that is no quotes). Limited to events no older than 18 hours
      Returns:
      dateHappened
    • setDateHappened

      public void setDateHappened(Long dateHappened)
    • deviceName

      public EventCreateRequest deviceName(String deviceName)
    • getDeviceName

      @Nullable public String getDeviceName()
      A device name.
      Returns:
      deviceName
    • setDeviceName

      public void setDeviceName(String deviceName)
    • host

      public EventCreateRequest 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.
      Returns:
      host
    • setHost

      public void setHost(String host)
    • priority

      public EventCreateRequest priority(EventPriority priority)
    • getPriority

      @Nullable public EventPriority getPriority()
      The priority of the event. For example, normal or low.
      Returns:
      priority
    • getPriority_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<EventPriority> getPriority_JsonNullable()
    • setPriority_JsonNullable

      public void setPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority)
    • setPriority

      public void setPriority(EventPriority priority)
    • relatedEventId

      public EventCreateRequest relatedEventId(Long relatedEventId)
    • getRelatedEventId

      @Nullable public Long getRelatedEventId()
      ID of the parent event. Must be sent as an integer (that is no quotes).
      Returns:
      relatedEventId
    • setRelatedEventId

      public void setRelatedEventId(Long relatedEventId)
    • sourceTypeName

      public EventCreateRequest sourceTypeName(String sourceTypeName)
    • getSourceTypeName

      @Nullable public String getSourceTypeName()
      The type of event being posted. Option examples include nagios, hudson, jenkins, my_apps, chef, puppet, git, bitbucket, etc. A complete list of source attribute values available here.
      Returns:
      sourceTypeName
    • setSourceTypeName

      public void setSourceTypeName(String sourceTypeName)
    • tags

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

      public EventCreateRequest addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      A list of tags to apply to the event.
      Returns:
      tags
    • setTags

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

      public EventCreateRequest text(String text)
    • getText

      public String getText()
      The body of the event. Limited to 4000 characters. The text supports markdown. To use markdown in the event text, start the text block with %%% \n and end the text block with \n %%%. Use msg_text with the Datadog Ruby library.
      Returns:
      text
    • setText

      public void setText(String text)
    • title

      public EventCreateRequest title(String title)
    • getTitle

      public String getTitle()
      The event title.
      Returns:
      title
    • setTitle

      public void setTitle(String title)
    • putAdditionalProperty

      public EventCreateRequest putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      EventCreateRequest
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this EventCreateRequest 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