Package com.datadog.api.client.v1.model
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 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 Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) alertType(EventAlertType alertType) dateHappened(Long dateHappened) deviceName(String deviceName) booleanReturn true if this Event object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.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.getId()Integer ID of the event.getIdStr()Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming languages.Payload of the event.The priority of the event.org.openapitools.jackson.nullable.JsonNullable<EventPriority>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.getUrl()URL of the event.inthashCode()priority(EventPriority priority) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAlertType(EventAlertType alertType) voidsetDateHappened(Long dateHappened) voidsetDeviceName(String deviceName) voidvoidsetPriority(EventPriority priority) voidsetPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority) voidsetSourceTypeName(String sourceTypeName) voidvoidvoidsourceTypeName(String sourceTypeName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
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_ID
- See Also:
-
JSON_PROPERTY_ID_STR
- See Also:
-
JSON_PROPERTY_PAYLOAD
- See Also:
-
JSON_PROPERTY_PRIORITY
- See Also:
-
JSON_PROPERTY_SOURCE_TYPE_NAME
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TEXT
- See Also:
-
JSON_PROPERTY_TITLE
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
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 up to 18 hours in the past and two hours in the future.- 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
-
getId
Integer ID of the event.- Returns:
- id
-
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
Payload of the event.- Returns:
- payload
-
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
-
sourceTypeName
-
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
-
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
-
getUrl
URL of the event.- Returns:
- url
-
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:
- Event
-
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 Event object is equal to o. -
hashCode
public int hashCode() -
toString
-