Class LogContent

java.lang.Object
com.datadog.api.client.v1.model.LogContent

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogContent extends Object
JSON object containing all log attributes and their associated values.
  • Field Details

  • Constructor Details

    • LogContent

      public LogContent()
  • Method Details

    • attributes

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

      public LogContent 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 LogContent 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 LogContent 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 LogContent 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)
    • tags

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

      public LogContent 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 LogContent timestamp(OffsetDateTime timestamp)
    • getTimestamp

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

      public void setTimestamp(OffsetDateTime timestamp)
    • putAdditionalProperty

      public LogContent 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:
      LogContent
    • 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 LogContent 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