@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogContent 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_TAGS |
static String |
JSON_PROPERTY_TIMESTAMP |
boolean |
unparsed |
Constructor and Description |
---|
LogContent() |
Modifier and Type | Method and Description |
---|---|
LogContent |
addTagsItem(String tagsItem) |
LogContent |
attributes(Map<String,Object> attributes) |
boolean |
equals(Object o)
Return true if this LogContent object is equal to o.
|
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.
|
List<String> |
getTags()
Array of tags associated with your log.
|
OffsetDateTime |
getTimestamp()
Timestamp of your log.
|
int |
hashCode() |
LogContent |
host(String host) |
LogContent |
message(String message) |
LogContent |
putAttributesItem(String key,
Object attributesItem) |
LogContent |
service(String service) |
void |
setAttributes(Map<String,Object> attributes) |
void |
setHost(String host) |
void |
setMessage(String message) |
void |
setService(String service) |
void |
setTags(List<String> tags) |
void |
setTimestamp(OffsetDateTime timestamp) |
LogContent |
tags(List<String> tags) |
LogContent |
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_TAGS
public static final String JSON_PROPERTY_TIMESTAMP
public LogContent attributes(Map<String,Object> attributes)
public LogContent putAttributesItem(String key, Object attributesItem)
@Nullable public Map<String,Object> getAttributes()
public LogContent host(String host)
@Nullable public String getHost()
public void setHost(String host)
public LogContent message(String message)
@Nullable public String getMessage()
public void setMessage(String message)
public LogContent service(String service)
@Nullable public String getService()
public void setService(String service)
public LogContent tags(List<String> tags)
public LogContent addTagsItem(String tagsItem)
@Nullable public List<String> getTags()
public LogContent timestamp(OffsetDateTime timestamp)
@Nullable public OffsetDateTime getTimestamp()
public void setTimestamp(OffsetDateTime timestamp)
public boolean equals(Object o)
Copyright © 2022. All rights reserved.