@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Event extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ALERT_TYPE |
static String |
JSON_PROPERTY_DATE_HAPPENED |
static String |
JSON_PROPERTY_DEVICE_NAME |
static String |
JSON_PROPERTY_HOST |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_ID_STR |
static String |
JSON_PROPERTY_PAYLOAD |
static String |
JSON_PROPERTY_PRIORITY |
static String |
JSON_PROPERTY_SOURCE_TYPE_NAME |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TEXT |
static String |
JSON_PROPERTY_TITLE |
static String |
JSON_PROPERTY_URL |
boolean |
unparsed |
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
Event |
addTagsItem(String tagsItem) |
Event |
alertType(EventAlertType alertType) |
Event |
dateHappened(Long dateHappened) |
Event |
deviceName(String deviceName) |
boolean |
equals(Object o)
Return true if this Event object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
EventAlertType |
getAlertType()
If an alert event is enabled, set its type.
|
Long |
getDateHappened()
POSIX timestamp of the event.
|
String |
getDeviceName()
A device name.
|
String |
getHost()
Host name to associate with the event.
|
Long |
getId()
Integer ID of the event.
|
String |
getIdStr()
Handling IDs as large 64-bit numbers can cause loss of accuracy issues with some programming
languages.
|
String |
getPayload()
Payload of the event.
|
org.openapitools.jackson.nullable.JsonNullable<EventPriority> |
getPriority_JsonNullable() |
EventPriority |
getPriority()
The priority of the event.
|
String |
getSourceTypeName()
The type of event being posted.
|
List<String> |
getTags()
A list of tags to apply to the event.
|
String |
getText()
The body of the event.
|
String |
getTitle()
The event title.
|
String |
getUrl()
URL of the event.
|
int |
hashCode() |
Event |
host(String host) |
Event |
priority(EventPriority priority) |
Event |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setAlertType(EventAlertType alertType) |
void |
setDateHappened(Long dateHappened) |
void |
setDeviceName(String deviceName) |
void |
setHost(String host) |
void |
setPriority_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<EventPriority> priority) |
void |
setPriority(EventPriority priority) |
void |
setSourceTypeName(String sourceTypeName) |
void |
setTags(List<String> tags) |
void |
setText(String text) |
void |
setTitle(String title) |
Event |
sourceTypeName(String sourceTypeName) |
Event |
tags(List<String> tags) |
Event |
text(String text) |
Event |
title(String title) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_ALERT_TYPE
public static final String JSON_PROPERTY_DATE_HAPPENED
public static final String JSON_PROPERTY_DEVICE_NAME
public static final String JSON_PROPERTY_HOST
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID_STR
public static final String JSON_PROPERTY_PAYLOAD
public static final String JSON_PROPERTY_PRIORITY
public static final String JSON_PROPERTY_SOURCE_TYPE_NAME
public static final String JSON_PROPERTY_TAGS
public static final String JSON_PROPERTY_TEXT
public static final String JSON_PROPERTY_TITLE
public static final String JSON_PROPERTY_URL
public Event alertType(EventAlertType alertType)
@Nullable public EventAlertType getAlertType()
error, warning
, info, success, user_update,
recommendation, and snapshot.public void setAlertType(EventAlertType alertType)
@Nullable public Long getDateHappened()
public void setDateHappened(Long dateHappened)
@Nullable public String getDeviceName()
public void setDeviceName(String deviceName)
@Nullable public String getHost()
public void setHost(String host)
@Nullable public Long getId()
@Nullable public String getIdStr()
@Nullable public String getPayload()
public Event 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)
@Nullable public String getSourceTypeName()
public void setSourceTypeName(String sourceTypeName)
@Nullable public String getText()
%%% \n and end the text block with
\n %%%. Use msg_text with the Datadog Ruby library.public void setText(String text)
@Nullable public String getTitle()
public void setTitle(String title)
@Nullable public String getUrl()
public Event putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.