Class Event

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

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

  • Constructor Details

    • Event

      public Event()
  • Method Details

    • alertType

      public Event 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 Event 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 up to 18 hours in the past and two hours in the future.
      Returns:
      dateHappened
    • setDateHappened

      public void setDateHappened(Long dateHappened)
    • deviceName

      public Event deviceName(String deviceName)
    • getDeviceName

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

      public void setDeviceName(String deviceName)
    • host

      public Event 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)
    • getId

      @Nullable public Long getId()
      Integer ID of the event.
      Returns:
      id
    • getIdStr

      @Nullable public String getIdStr()
      Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages. Instead, use the string representation of the Event ID to avoid losing accuracy.
      Returns:
      idStr
    • getPayload

      @Nullable public String getPayload()
      Payload of the event.
      Returns:
      payload
    • priority

      public Event 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)
    • sourceTypeName

      public Event 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. The list of standard source attribute values available here.
      Returns:
      sourceTypeName
    • setSourceTypeName

      public void setSourceTypeName(String sourceTypeName)
    • tags

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

      public Event 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 Event text(String text)
    • getText

      @Nullable 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 Event title(String title)
    • getTitle

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

      public void setTitle(String title)
    • getUrl

      @Nullable public String getUrl()
      URL of the event.
      Returns:
      url
    • putAdditionalProperty

      public Event 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:
      Event
    • 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 Event 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