Class EventAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventAttributes extends Object
Object description of attributes from your event.
  • Field Details

  • Constructor Details

    • EventAttributes

      public EventAttributes()
  • Method Details

    • aggregationKey

      public EventAttributes aggregationKey(String aggregationKey)
    • getAggregationKey

      @Nullable public String getAggregationKey()
      Aggregation key of the event.
      Returns:
      aggregationKey
    • setAggregationKey

      public void setAggregationKey(String aggregationKey)
    • dateHappened

      public EventAttributes dateHappened(Long dateHappened)
    • getDateHappened

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

      public void setDateHappened(Long dateHappened)
    • deviceName

      public EventAttributes deviceName(String deviceName)
    • getDeviceName

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

      public void setDeviceName(String deviceName)
    • duration

      public EventAttributes duration(Long duration)
    • getDuration

      @Nullable public Long getDuration()
      The duration between the triggering of the event and its recovery in nanoseconds.
      Returns:
      duration
    • setDuration

      public void setDuration(Long duration)
    • eventObject

      public EventAttributes eventObject(String eventObject)
    • getEventObject

      @Nullable public String getEventObject()
      The event title.
      Returns:
      eventObject
    • setEventObject

      public void setEventObject(String eventObject)
    • evt

      public EventAttributes evt(Event evt)
    • getEvt

      @Nullable public Event getEvt()
      The metadata associated with a request.
      Returns:
      evt
    • setEvt

      public void setEvt(Event evt)
    • hostname

      public EventAttributes hostname(String hostname)
    • getHostname

      @Nullable public String getHostname()
      Host name to associate with the event. Any tags associated with the host are also applied to this event.
      Returns:
      hostname
    • setHostname

      public void setHostname(String hostname)
    • monitor

      public EventAttributes monitor(MonitorType monitor)
    • getMonitor

      @Nullable public MonitorType getMonitor()
      Attributes from the monitor that triggered the event.
      Returns:
      monitor
    • getMonitor_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<MonitorType> getMonitor_JsonNullable()
    • setMonitor_JsonNullable

      public void setMonitor_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<MonitorType> monitor)
    • setMonitor

      public void setMonitor(MonitorType monitor)
    • monitorGroups

      public EventAttributes monitorGroups(List<String> monitorGroups)
    • addMonitorGroupsItem

      public EventAttributes addMonitorGroupsItem(String monitorGroupsItem)
    • getMonitorGroups

      @Nullable public List<String> getMonitorGroups()
      List of groups referred to in the event.
      Returns:
      monitorGroups
    • getMonitorGroups_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<String>> getMonitorGroups_JsonNullable()
    • setMonitorGroups_JsonNullable

      public void setMonitorGroups_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> monitorGroups)
    • setMonitorGroups

      public void setMonitorGroups(List<String> monitorGroups)
    • monitorId

      public EventAttributes monitorId(Long monitorId)
    • getMonitorId

      @Nullable public Long getMonitorId()
      ID of the monitor that triggered the event. When an event isn't related to a monitor, this field is empty.
      Returns:
      monitorId
    • getMonitorId_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getMonitorId_JsonNullable()
    • setMonitorId_JsonNullable

      public void setMonitorId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> monitorId)
    • setMonitorId

      public void setMonitorId(Long monitorId)
    • priority

      public EventAttributes priority(EventPriority priority)
    • getPriority

      @Nullable public EventPriority getPriority()
      The priority of the event alert. Legacy events use normal or low. Alert events use 1 (highest priority) through 5 (lowest priority).
      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 EventAttributes relatedEventId(Long relatedEventId)
    • getRelatedEventId

      @Nullable public Long getRelatedEventId()
      Related event ID.
      Returns:
      relatedEventId
    • setRelatedEventId

      public void setRelatedEventId(Long relatedEventId)
    • service

      public EventAttributes service(String service)
    • getService

      @Nullable public String getService()
      Service that triggered the event.
      Returns:
      service
    • setService

      public void setService(String service)
    • sourceTypeName

      public EventAttributes sourceTypeName(String sourceTypeName)
    • getSourceTypeName

      @Nullable public String getSourceTypeName()
      The type of event being posted. For example, nagios, hudson, jenkins, my_apps, chef, puppet, git or bitbucket. The list of standard source attribute values is available here.
      Returns:
      sourceTypeName
    • setSourceTypeName

      public void setSourceTypeName(String sourceTypeName)
    • sourcecategory

      public EventAttributes sourcecategory(String sourcecategory)
    • getSourcecategory

      @Nullable public String getSourcecategory()
      Identifier for the source of the event, such as a monitor alert, an externally-submitted event, or an integration.
      Returns:
      sourcecategory
    • setSourcecategory

      public void setSourcecategory(String sourcecategory)
    • status

      public EventAttributes status(EventStatusType status)
    • getStatus

      @Nullable public EventStatusType getStatus()
      The event status. Legacy events can use failure, error, warning , info, success, user_update, recommendation, or snapshot. Alert events can use error, warn, or ok.
      Returns:
      status
    • setStatus

      public void setStatus(EventStatusType status)
    • tags

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

      public EventAttributes 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)
    • timestamp

      public EventAttributes timestamp(Long timestamp)
    • getTimestamp

      @Nullable public Long getTimestamp()
      POSIX timestamp of your event in milliseconds.
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(Long timestamp)
    • title

      public EventAttributes title(String title)
    • getTitle

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

      public void setTitle(String title)
    • putAdditionalProperty

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