@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventAttributes extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JSON_PROPERTY_AGGREGATION_KEY |
static String |
JSON_PROPERTY_DATE_HAPPENED |
static String |
JSON_PROPERTY_DEVICE_NAME |
static String |
JSON_PROPERTY_DURATION |
static String |
JSON_PROPERTY_EVENT_OBJECT |
static String |
JSON_PROPERTY_EVT |
static String |
JSON_PROPERTY_HOSTNAME |
static String |
JSON_PROPERTY_MONITOR |
static String |
JSON_PROPERTY_MONITOR_GROUPS |
static String |
JSON_PROPERTY_MONITOR_ID |
static String |
JSON_PROPERTY_PRIORITY |
static String |
JSON_PROPERTY_RELATED_EVENT_ID |
static String |
JSON_PROPERTY_SERVICE |
static String |
JSON_PROPERTY_SOURCE_TYPE_NAME |
static String |
JSON_PROPERTY_SOURCECATEGORY |
static String |
JSON_PROPERTY_STATUS |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TIMESTAMP |
static String |
JSON_PROPERTY_TITLE |
boolean |
unparsed |
Constructor and Description |
---|
EventAttributes() |
Modifier and Type | Method and Description |
---|---|
EventAttributes |
addMonitorGroupsItem(String monitorGroupsItem) |
EventAttributes |
addTagsItem(String tagsItem) |
EventAttributes |
aggregationKey(String aggregationKey) |
EventAttributes |
dateHappened(Long dateHappened) |
EventAttributes |
deviceName(String deviceName) |
EventAttributes |
duration(Long duration) |
boolean |
equals(Object o)
Return true if this EventAttributes object is equal to o.
|
EventAttributes |
eventObject(String eventObject) |
EventAttributes |
evt(Event evt) |
String |
getAggregationKey()
Aggregation key of the event.
|
Long |
getDateHappened()
POSIX timestamp of the event.
|
String |
getDeviceName()
A device name.
|
Long |
getDuration()
The duration between the triggering of the event and its recovery in nanoseconds.
|
String |
getEventObject()
The event title.
|
Event |
getEvt()
The metadata associated with a request.
|
String |
getHostname()
Host name to associate with the event.
|
org.openapitools.jackson.nullable.JsonNullable<MonitorType> |
getMonitor_JsonNullable() |
MonitorType |
getMonitor()
Attributes from the monitor that triggered the event.
|
org.openapitools.jackson.nullable.JsonNullable<List<String>> |
getMonitorGroups_JsonNullable() |
List<String> |
getMonitorGroups()
List of groups referred to in the event.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getMonitorId_JsonNullable() |
Long |
getMonitorId()
ID of the monitor that triggered the event.
|
org.openapitools.jackson.nullable.JsonNullable<EventPriority> |
getPriority_JsonNullable() |
EventPriority |
getPriority()
The priority of the event's monitor.
|
Long |
getRelatedEventId()
Related event ID.
|
String |
getService()
Service that triggered the event.
|
String |
getSourcecategory()
Identifier for the source of the event, such as a monitor alert, an externally-submitted event,
or an integration.
|
String |
getSourceTypeName()
The type of event being posted.
|
EventStatusType |
getStatus()
If an alert event is enabled, its status is one of the following:
failure ,
error , warning , info , success , user_update
, recommendation , or snapshot . |
List<String> |
getTags()
A list of tags to apply to the event.
|
Long |
getTimestamp()
POSIX timestamp of your event in milliseconds.
|
String |
getTitle()
The event title.
|
int |
hashCode() |
EventAttributes |
hostname(String hostname) |
EventAttributes |
monitor(MonitorType monitor) |
EventAttributes |
monitorGroups(List<String> monitorGroups) |
EventAttributes |
monitorId(Long monitorId) |
EventAttributes |
priority(EventPriority priority) |
EventAttributes |
relatedEventId(Long relatedEventId) |
EventAttributes |
service(String service) |
void |
setAggregationKey(String aggregationKey) |
void |
setDateHappened(Long dateHappened) |
void |
setDeviceName(String deviceName) |
void |
setDuration(Long duration) |
void |
setEventObject(String eventObject) |
void |
setEvt(Event evt) |
void |
setHostname(String hostname) |
void |
setMonitor_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<MonitorType> monitor) |
void |
setMonitor(MonitorType monitor) |
void |
setMonitorGroups_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> monitorGroups) |
void |
setMonitorGroups(List<String> monitorGroups) |
void |
setMonitorId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> monitorId) |
void |
setMonitorId(Long monitorId) |
void |
setPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority) |
void |
setPriority(EventPriority priority) |
void |
setRelatedEventId(Long relatedEventId) |
void |
setService(String service) |
void |
setSourcecategory(String sourcecategory) |
void |
setSourceTypeName(String sourceTypeName) |
void |
setStatus(EventStatusType status) |
void |
setTags(List<String> tags) |
void |
setTimestamp(Long timestamp) |
void |
setTitle(String title) |
EventAttributes |
sourcecategory(String sourcecategory) |
EventAttributes |
sourceTypeName(String sourceTypeName) |
EventAttributes |
status(EventStatusType status) |
EventAttributes |
tags(List<String> tags) |
EventAttributes |
timestamp(Long timestamp) |
EventAttributes |
title(String title) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_AGGREGATION_KEY
public static final String JSON_PROPERTY_DATE_HAPPENED
public static final String JSON_PROPERTY_DEVICE_NAME
public static final String JSON_PROPERTY_DURATION
public static final String JSON_PROPERTY_EVENT_OBJECT
public static final String JSON_PROPERTY_EVT
public static final String JSON_PROPERTY_HOSTNAME
public static final String JSON_PROPERTY_MONITOR
public static final String JSON_PROPERTY_MONITOR_GROUPS
public static final String JSON_PROPERTY_MONITOR_ID
public static final String JSON_PROPERTY_PRIORITY
public static final String JSON_PROPERTY_RELATED_EVENT_ID
public static final String JSON_PROPERTY_SERVICE
public static final String JSON_PROPERTY_SOURCE_TYPE_NAME
public static final String JSON_PROPERTY_SOURCECATEGORY
public static final String JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_TAGS
public static final String JSON_PROPERTY_TIMESTAMP
public static final String JSON_PROPERTY_TITLE
public EventAttributes aggregationKey(String aggregationKey)
@Nullable public String getAggregationKey()
public void setAggregationKey(String aggregationKey)
public EventAttributes dateHappened(Long dateHappened)
@Nullable public Long getDateHappened()
public void setDateHappened(Long dateHappened)
public EventAttributes deviceName(String deviceName)
@Nullable public String getDeviceName()
public void setDeviceName(String deviceName)
public EventAttributes duration(Long duration)
@Nullable public Long getDuration()
public void setDuration(Long duration)
public EventAttributes eventObject(String eventObject)
@Nullable public String getEventObject()
public void setEventObject(String eventObject)
public EventAttributes evt(Event evt)
@Nullable public Event getEvt()
public void setEvt(Event evt)
public EventAttributes hostname(String hostname)
@Nullable public String getHostname()
public void setHostname(String hostname)
public EventAttributes monitor(MonitorType monitor)
@Nullable public MonitorType getMonitor()
public org.openapitools.jackson.nullable.JsonNullable<MonitorType> getMonitor_JsonNullable()
public void setMonitor_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<MonitorType> monitor)
public void setMonitor(MonitorType monitor)
public EventAttributes monitorGroups(List<String> monitorGroups)
public EventAttributes addMonitorGroupsItem(String monitorGroupsItem)
@Nullable public List<String> getMonitorGroups()
public org.openapitools.jackson.nullable.JsonNullable<List<String>> getMonitorGroups_JsonNullable()
public void setMonitorGroups_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> monitorGroups)
public EventAttributes monitorId(Long monitorId)
@Nullable public Long getMonitorId()
public org.openapitools.jackson.nullable.JsonNullable<Long> getMonitorId_JsonNullable()
public void setMonitorId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> monitorId)
public void setMonitorId(Long monitorId)
public EventAttributes priority(EventPriority priority)
@Nullable public EventPriority getPriority()
normal
or low
.public org.openapitools.jackson.nullable.JsonNullable<EventPriority> getPriority_JsonNullable()
public void setPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority)
public void setPriority(EventPriority priority)
public EventAttributes relatedEventId(Long relatedEventId)
@Nullable public Long getRelatedEventId()
public void setRelatedEventId(Long relatedEventId)
public EventAttributes service(String service)
@Nullable public String getService()
public void setService(String service)
public EventAttributes sourceTypeName(String sourceTypeName)
@Nullable public String getSourceTypeName()
nagios
, hudson
,
jenkins
, my_apps
, chef
, puppet
, git
or bitbucket
. The list of standard source attribute values is available
here.public void setSourceTypeName(String sourceTypeName)
public EventAttributes sourcecategory(String sourcecategory)
@Nullable public String getSourcecategory()
public void setSourcecategory(String sourcecategory)
public EventAttributes status(EventStatusType status)
@Nullable public EventStatusType getStatus()
failure
,
error
, warning
, info
, success
, user_update
, recommendation
, or snapshot
.public void setStatus(EventStatusType status)
public EventAttributes tags(List<String> tags)
public EventAttributes addTagsItem(String tagsItem)
public EventAttributes timestamp(Long timestamp)
@Nullable public Long getTimestamp()
public void setTimestamp(Long timestamp)
public EventAttributes title(String title)
@Nullable public String getTitle()
public void setTitle(String title)
public boolean equals(Object o)
Copyright © 2023. All rights reserved.