@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class EventPayload extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_AGGREGATION_KEY |
static String |
JSON_PROPERTY_ATTRIBUTES |
static String |
JSON_PROPERTY_CATEGORY |
static String |
JSON_PROPERTY_MESSAGE |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TIMESTAMP |
static String |
JSON_PROPERTY_TITLE |
boolean |
unparsed |
| Constructor and Description |
|---|
EventPayload() |
EventPayload(EventPayloadAttributes attributes,
EventCategory category,
String title) |
| Modifier and Type | Method and Description |
|---|---|
EventPayload |
addTagsItem(String tagsItem) |
EventPayload |
aggregationKey(String aggregationKey) |
EventPayload |
attributes(EventPayloadAttributes attributes) |
EventPayload |
category(EventCategory category) |
boolean |
equals(Object o)
Return true if this EventPayload 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 when correlating events.
|
EventPayloadAttributes |
getAttributes()
JSON object for custom attributes.
|
EventCategory |
getCategory()
Event category to identify the type of event.
|
String |
getMessage()
The body of the event.
|
List<String> |
getTags()
A list of tags to apply to the event.
|
String |
getTimestamp()
Timestamp when the event occurred.
|
String |
getTitle()
The event title.
|
int |
hashCode() |
EventPayload |
message(String message) |
EventPayload |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setAggregationKey(String aggregationKey) |
void |
setAttributes(EventPayloadAttributes attributes) |
void |
setCategory(EventCategory category) |
void |
setMessage(String message) |
void |
setTags(List<String> tags) |
void |
setTimestamp(String timestamp) |
void |
setTitle(String title) |
EventPayload |
tags(List<String> tags) |
EventPayload |
timestamp(String timestamp) |
EventPayload |
title(String title) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_AGGREGATION_KEY
public static final String JSON_PROPERTY_ATTRIBUTES
public static final String JSON_PROPERTY_CATEGORY
public static final String JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_TAGS
public static final String JSON_PROPERTY_TIMESTAMP
public static final String JSON_PROPERTY_TITLE
public EventPayload()
public EventPayload(EventPayloadAttributes attributes, EventCategory category, String title)
public EventPayload aggregationKey(String aggregationKey)
@Nullable public String getAggregationKey()
public void setAggregationKey(String aggregationKey)
public EventPayload attributes(EventPayloadAttributes attributes)
public EventPayloadAttributes getAttributes()
public void setAttributes(EventPayloadAttributes attributes)
public EventPayload category(EventCategory category)
public EventCategory getCategory()
change is supported.
Support for other categories are coming. please reach out to datadog support if you're
interested.public void setCategory(EventCategory category)
public EventPayload message(String message)
@Nullable public String getMessage()
public void setMessage(String message)
public EventPayload tags(List<String> tags)
public EventPayload addTagsItem(String tagsItem)
@Nullable public List<String> getTags()
public EventPayload timestamp(String timestamp)
@Nullable public String getTimestamp()
"2017-01-15T01:30:15.010000Z". Defaults to the timestamp of receipt. Limited to
values no older than 18 hours.public void setTimestamp(String timestamp)
public EventPayload title(String title)
public String getTitle()
public void setTitle(String title)
public EventPayload 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.