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 Details

  • Constructor Details

    • LogAttributes

      public LogAttributes()
  • Method Details

    • attributes

      public LogAttributes attributes(Map<String,Object> attributes)
    • putAttributesItem

      public LogAttributes putAttributesItem(String key, Object attributesItem)
    • getAttributes

      @Nullable public Map<String,Object> getAttributes()
      JSON object of attributes from your log.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
    • host

      public LogAttributes host(String host)
    • getHost

      @Nullable public String getHost()
      Name of the machine from where the logs are being sent.
      Returns:
      host
    • setHost

      public void setHost(String host)
    • message

      public LogAttributes message(String message)
    • getMessage

      @Nullable public String 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

      public void setMessage(String message)
    • service

      public LogAttributes service(String service)
    • getService

      @Nullable public String 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

      public void setService(String service)
    • status

      public LogAttributes status(String status)
    • getStatus

      @Nullable public String getStatus()
      Status of the message associated with your log.
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • tags

      public LogAttributes tags(List<String> tags)
    • addTagsItem

      public LogAttributes addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Array of tags associated with your log.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • timestamp

      public LogAttributes timestamp(OffsetDateTime timestamp)
    • getTimestamp

      @Nullable public OffsetDateTime getTimestamp()
      Timestamp of your log.
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(OffsetDateTime timestamp)
    • putAdditionalProperty

      public LogAttributes putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      LogAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this LogAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object