@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ATTRIBUTES |
static String |
JSON_PROPERTY_HOST |
static String |
JSON_PROPERTY_MESSAGE |
static String |
JSON_PROPERTY_SERVICE |
static String |
JSON_PROPERTY_STATUS |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TIMESTAMP |
boolean |
unparsed |
| Constructor and Description |
|---|
LogAttributes() |
| Modifier and Type | Method and Description |
|---|---|
LogAttributes |
addTagsItem(String tagsItem) |
LogAttributes |
attributes(Map<String,Object> attributes) |
boolean |
equals(Object o)
Return true if this LogAttributes 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.
|
Map<String,Object> |
getAttributes()
JSON object of attributes from your log.
|
String |
getHost()
Name of the machine from where the logs are being sent.
|
String |
getMessage()
The message reserved
attribute of your log.
|
String |
getService()
The name of the application or service generating the log events.
|
String |
getStatus()
Status of the message associated with your log.
|
List<String> |
getTags()
Array of tags associated with your log.
|
OffsetDateTime |
getTimestamp()
Timestamp of your log.
|
int |
hashCode() |
LogAttributes |
host(String host) |
LogAttributes |
message(String message) |
LogAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
LogAttributes |
putAttributesItem(String key,
Object attributesItem) |
LogAttributes |
service(String service) |
void |
setAttributes(Map<String,Object> attributes) |
void |
setHost(String host) |
void |
setMessage(String message) |
void |
setService(String service) |
void |
setStatus(String status) |
void |
setTags(List<String> tags) |
void |
setTimestamp(OffsetDateTime timestamp) |
LogAttributes |
status(String status) |
LogAttributes |
tags(List<String> tags) |
LogAttributes |
timestamp(OffsetDateTime timestamp) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_ATTRIBUTES
public static final String JSON_PROPERTY_HOST
public static final String JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_SERVICE
public static final String JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_TAGS
public static final String JSON_PROPERTY_TIMESTAMP
public LogAttributes attributes(Map<String,Object> attributes)
public LogAttributes putAttributesItem(String key, Object attributesItem)
@Nullable public Map<String,Object> getAttributes()
public LogAttributes host(String host)
@Nullable public String getHost()
public void setHost(String host)
public LogAttributes message(String message)
@Nullable public String getMessage()
public void setMessage(String message)
public LogAttributes service(String service)
@Nullable public String getService()
public void setService(String service)
public LogAttributes status(String status)
@Nullable public String getStatus()
public void setStatus(String status)
public LogAttributes tags(List<String> tags)
public LogAttributes addTagsItem(String tagsItem)
@Nullable public List<String> getTags()
public LogAttributes timestamp(OffsetDateTime timestamp)
@Nullable public OffsetDateTime getTimestamp()
public void setTimestamp(OffsetDateTime timestamp)
public LogAttributes 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.