Package com.datadog.api.client.v2.model
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMonitorGroupsItem(String monitorGroupsItem) addTagsItem(String tagsItem) aggregationKey(String aggregationKey) dateHappened(Long dateHappened) deviceName(String deviceName) booleanReturn true if this EventAttributes object is equal to o.eventObject(String eventObject) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Aggregation key of the event.POSIX timestamp of the event.A device name.The duration between the triggering of the event and its recovery in nanoseconds.The event title.getEvt()The metadata associated with a request.Host name to associate with the event.Attributes from the monitor that triggered the event.org.openapitools.jackson.nullable.JsonNullable<MonitorType>List of groups referred to in the event.ID of the monitor that triggered the event.org.openapitools.jackson.nullable.JsonNullable<Long>The priority of the event alert.org.openapitools.jackson.nullable.JsonNullable<EventPriority>Related event ID.Service that triggered the event.Identifier for the source of the event, such as a monitor alert, an externally-submitted event, or an integration.The type of event being posted.The event status.getTags()A list of tags to apply to the event.POSIX timestamp of your event in milliseconds.getTitle()The event title.inthashCode()monitor(MonitorType monitor) monitorGroups(List<String> monitorGroups) priority(EventPriority priority) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.relatedEventId(Long relatedEventId) voidsetAggregationKey(String aggregationKey) voidsetDateHappened(Long dateHappened) voidsetDeviceName(String deviceName) voidsetDuration(Long duration) voidsetEventObject(String eventObject) voidvoidsetHostname(String hostname) voidsetMonitor(MonitorType monitor) voidsetMonitor_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<MonitorType> monitor) voidsetMonitorGroups(List<String> monitorGroups) voidsetMonitorGroups_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> monitorGroups) voidsetMonitorId(Long monitorId) voidsetMonitorId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> monitorId) voidsetPriority(EventPriority priority) voidsetPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority) voidsetRelatedEventId(Long relatedEventId) voidsetService(String service) voidsetSourcecategory(String sourcecategory) voidsetSourceTypeName(String sourceTypeName) voidsetStatus(EventStatusType status) voidvoidsetTimestamp(Long timestamp) voidsourcecategory(String sourcecategory) sourceTypeName(String sourceTypeName) status(EventStatusType status) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AGGREGATION_KEY
- See Also:
-
JSON_PROPERTY_DATE_HAPPENED
- See Also:
-
JSON_PROPERTY_DEVICE_NAME
- See Also:
-
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_EVENT_OBJECT
- See Also:
-
JSON_PROPERTY_EVT
- See Also:
-
JSON_PROPERTY_HOSTNAME
- See Also:
-
JSON_PROPERTY_MONITOR
- See Also:
-
JSON_PROPERTY_MONITOR_GROUPS
- See Also:
-
JSON_PROPERTY_MONITOR_ID
- See Also:
-
JSON_PROPERTY_PRIORITY
- See Also:
-
JSON_PROPERTY_RELATED_EVENT_ID
- See Also:
-
JSON_PROPERTY_SERVICE
- See Also:
-
JSON_PROPERTY_SOURCE_TYPE_NAME
- See Also:
-
JSON_PROPERTY_SOURCECATEGORY
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TIMESTAMP
- See Also:
-
JSON_PROPERTY_TITLE
- See Also:
-
-
Constructor Details
-
EventAttributes
public EventAttributes()
-
-
Method Details
-
aggregationKey
-
getAggregationKey
Aggregation key of the event.- Returns:
- aggregationKey
-
setAggregationKey
-
dateHappened
-
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
-
deviceName
-
getDeviceName
A device name.- Returns:
- deviceName
-
setDeviceName
-
duration
-
getDuration
The duration between the triggering of the event and its recovery in nanoseconds.- Returns:
- duration
-
setDuration
-
eventObject
-
getEventObject
The event title.- Returns:
- eventObject
-
setEventObject
-
evt
-
getEvt
The metadata associated with a request.- Returns:
- evt
-
setEvt
-
hostname
-
getHostname
Host name to associate with the event. Any tags associated with the host are also applied to this event.- Returns:
- hostname
-
setHostname
-
monitor
-
getMonitor
Attributes from the monitor that triggered the event.- Returns:
- monitor
-
getMonitor_JsonNullable
-
setMonitor_JsonNullable
public void setMonitor_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<MonitorType> monitor) -
setMonitor
-
monitorGroups
-
addMonitorGroupsItem
-
getMonitorGroups
List of groups referred to in the event.- Returns:
- monitorGroups
-
getMonitorGroups_JsonNullable
-
setMonitorGroups_JsonNullable
-
setMonitorGroups
-
monitorId
-
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
-
setMonitorId_JsonNullable
public void setMonitorId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> monitorId) -
setMonitorId
-
priority
-
getPriority
The priority of the event alert. Legacy events usenormalorlow. Alert events use1(highest priority) through5(lowest priority).- Returns:
- priority
-
getPriority_JsonNullable
-
setPriority_JsonNullable
public void setPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority) -
setPriority
-
getRelatedEventId
Related event ID.- Returns:
- relatedEventId
-
setRelatedEventId
-
service
-
getService
Service that triggered the event.- Returns:
- service
-
setService
-
sourceTypeName
-
getSourceTypeName
The type of event being posted. For example,nagios,hudson,jenkins,my_apps,chef,puppet,gitorbitbucket. The list of standard source attribute values is available here.- Returns:
- sourceTypeName
-
setSourceTypeName
-
sourcecategory
-
getSourcecategory
Identifier for the source of the event, such as a monitor alert, an externally-submitted event, or an integration.- Returns:
- sourcecategory
-
setSourcecategory
-
status
-
getStatus
The event status. Legacy events can usefailure,error,warning,info,success,user_update,recommendation, orsnapshot. Alert events can useerror,warn, orok.- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
A list of tags to apply to the event.- Returns:
- tags
-
setTags
-
timestamp
-
getTimestamp
POSIX timestamp of your event in milliseconds.- Returns:
- timestamp
-
setTimestamp
-
title
-
getTitle
The event title.- Returns:
- title
-
setTitle
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- EventAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this EventAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-