Package com.datadog.api.client.v1.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) aggregationKey(String aggregationKey) alertType(EventAlertType alertType) dateHappened(Long dateHappened) deviceName(String deviceName) booleanReturn true if this EventCreateRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.An arbitrary string to use for aggregation.If an alert event is enabled, set its type.POSIX timestamp of the event.A device name.getHost()Host name to associate with the event.The priority of the event.org.openapitools.jackson.nullable.JsonNullable<EventPriority>ID of the parent event.The type of event being posted.getTags()A list of tags to apply to the event.getText()The body of the event.getTitle()The event title.inthashCode()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) voidsetAlertType(EventAlertType alertType) voidsetDateHappened(Long dateHappened) voidsetDeviceName(String deviceName) voidvoidsetPriority(EventPriority priority) voidsetPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority) voidsetRelatedEventId(Long relatedEventId) voidsetSourceTypeName(String sourceTypeName) voidvoidvoidsourceTypeName(String sourceTypeName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AGGREGATION_KEY
- See Also:
-
JSON_PROPERTY_ALERT_TYPE
- See Also:
-
JSON_PROPERTY_DATE_HAPPENED
- See Also:
-
JSON_PROPERTY_DEVICE_NAME
- See Also:
-
JSON_PROPERTY_HOST
- See Also:
-
JSON_PROPERTY_PRIORITY
- See Also:
-
JSON_PROPERTY_RELATED_EVENT_ID
- See Also:
-
JSON_PROPERTY_SOURCE_TYPE_NAME
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TEXT
- See Also:
-
JSON_PROPERTY_TITLE
- See Also:
-
-
Constructor Details
-
EventCreateRequest
public EventCreateRequest() -
EventCreateRequest
-
-
Method Details
-
aggregationKey
-
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
-
alertType
-
getAlertType
If an alert event is enabled, set its type. For example,error,warning,info,success,user_update,recommendation, andsnapshot.- Returns:
- alertType
-
setAlertType
-
dateHappened
-
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
-
deviceName
-
getDeviceName
A device name.- Returns:
- deviceName
-
setDeviceName
-
host
-
getHost
Host name to associate with the event. Any tags associated with the host are also applied to this event.- Returns:
- host
-
setHost
-
priority
-
getPriority
The priority of the event. For example,normalorlow.- Returns:
- priority
-
getPriority_JsonNullable
-
setPriority_JsonNullable
public void setPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority) -
setPriority
-
getRelatedEventId
ID of the parent event. Must be sent as an integer (that is no quotes).- Returns:
- relatedEventId
-
setRelatedEventId
-
sourceTypeName
-
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
-
tags
-
addTagsItem
-
getTags
A list of tags to apply to the event.- Returns:
- tags
-
setTags
-
text
-
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%%% \nand end the text block with\n %%%. Usemsg_textwith the Datadog Ruby library.- Returns:
- text
-
setText
-
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:
- EventCreateRequest
-
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 EventCreateRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-