Package com.datadog.api.client.v2.model
Class LogAttributes
java.lang.Object
com.datadog.api.client.v2.model.LogAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogAttributes
extends Object
JSON object containing all log attributes and their associated values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) attributes(Map<String, Object> attributes) booleanReturn true if this LogAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.JSON object of attributes from your log.getHost()Name of the machine from where the logs are being sent.The message reserved attribute of your log.The name of the application or service generating the log events.Status of the message associated with your log.getTags()Array of tags associated with your log.Timestamp of your log.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putAttributesItem(String key, Object attributesItem) voidsetAttributes(Map<String, Object> attributes) voidvoidsetMessage(String message) voidsetService(String service) voidvoidvoidsetTimestamp(OffsetDateTime timestamp) timestamp(OffsetDateTime timestamp) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_HOST
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_SERVICE
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TIMESTAMP
- See Also:
-
-
Constructor Details
-
LogAttributes
public LogAttributes()
-
-
Method Details
-
attributes
-
putAttributesItem
-
getAttributes
JSON object of attributes from your log.- Returns:
- attributes
-
setAttributes
-
host
-
getHost
Name of the machine from where the logs are being sent.- Returns:
- host
-
setHost
-
message
-
getMessage
The message reserved attribute of your log. By default, Datadog ingests the value of the message attribute as the body of the log entry. That value is then highlighted and displayed in the Logstream, where it is indexed for full text search.- Returns:
- message
-
setMessage
-
service
-
getService
The name of the application or service generating the log events. It is used to switch from Logs to APM, so make sure you define the same value when you use both products.- Returns:
- service
-
setService
-
status
-
getStatus
Status of the message associated with your log.- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
Array of tags associated with your log.- Returns:
- tags
-
setTags
-
timestamp
-
getTimestamp
Timestamp of your log.- Returns:
- timestamp
-
setTimestamp
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LogAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LogAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-