@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventCreateRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_AGGREGATION_KEY |
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_PRIORITY |
static String |
JSON_PROPERTY_RELATED_EVENT_ID |
static String |
JSON_PROPERTY_SOURCE_TYPE_NAME |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TEXT |
static String |
JSON_PROPERTY_TITLE |
boolean |
unparsed |
| Constructor and Description |
|---|
EventCreateRequest() |
EventCreateRequest(String text,
String title) |
| Modifier and Type | Method and Description |
|---|---|
EventCreateRequest |
addTagsItem(String tagsItem) |
EventCreateRequest |
aggregationKey(String aggregationKey) |
EventCreateRequest |
alertType(EventAlertType alertType) |
EventCreateRequest |
dateHappened(Long dateHappened) |
EventCreateRequest |
deviceName(String deviceName) |
boolean |
equals(Object o)
Return true if this EventCreateRequest 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.
|
String |
getAggregationKey()
An arbitrary string to use for aggregation.
|
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.
|
org.openapitools.jackson.nullable.JsonNullable<EventPriority> |
getPriority_JsonNullable() |
EventPriority |
getPriority()
The priority of the event.
|
Long |
getRelatedEventId()
ID of the parent 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.
|
int |
hashCode() |
EventCreateRequest |
host(String host) |
EventCreateRequest |
priority(EventPriority priority) |
EventCreateRequest |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
EventCreateRequest |
relatedEventId(Long relatedEventId) |
void |
setAggregationKey(String aggregationKey) |
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 |
setRelatedEventId(Long relatedEventId) |
void |
setSourceTypeName(String sourceTypeName) |
void |
setTags(List<String> tags) |
void |
setText(String text) |
void |
setTitle(String title) |
EventCreateRequest |
sourceTypeName(String sourceTypeName) |
EventCreateRequest |
tags(List<String> tags) |
EventCreateRequest |
text(String text) |
EventCreateRequest |
title(String title) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_AGGREGATION_KEY
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_PRIORITY
public static final String JSON_PROPERTY_RELATED_EVENT_ID
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 EventCreateRequest aggregationKey(String aggregationKey)
@Nullable public String getAggregationKey()
public void setAggregationKey(String aggregationKey)
public EventCreateRequest alertType(EventAlertType alertType)
@Nullable public EventAlertType getAlertType()
error, warning
, info, success, user_update,
recommendation, and snapshot.public void setAlertType(EventAlertType alertType)
public EventCreateRequest dateHappened(Long dateHappened)
@Nullable public Long getDateHappened()
public void setDateHappened(Long dateHappened)
public EventCreateRequest deviceName(String deviceName)
@Nullable public String getDeviceName()
public void setDeviceName(String deviceName)
public EventCreateRequest host(String host)
@Nullable public String getHost()
public void setHost(String host)
public EventCreateRequest 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 EventCreateRequest relatedEventId(Long relatedEventId)
@Nullable public Long getRelatedEventId()
public void setRelatedEventId(Long relatedEventId)
public EventCreateRequest sourceTypeName(String sourceTypeName)
@Nullable public String getSourceTypeName()
public void setSourceTypeName(String sourceTypeName)
public EventCreateRequest tags(List<String> tags)
public EventCreateRequest addTagsItem(String tagsItem)
public EventCreateRequest text(String text)
public String getText()
%%% \n and end the text block with
\n %%%. Use msg_text with the Datadog Ruby library.public void setText(String text)
public EventCreateRequest title(String title)
public String getTitle()
public void setTitle(String title)
public EventCreateRequest 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.