Class HTTPLogItem

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class HTTPLogItem extends Object
Logs that are sent over HTTP.
  • Field Details

  • Constructor Details

    • HTTPLogItem

      public HTTPLogItem()
    • HTTPLogItem

      public HTTPLogItem(String message)
  • Method Details

    • ddsource

      public HTTPLogItem ddsource(String ddsource)
    • getDdsource

      @Nullable public String getDdsource()
      The integration name associated with your log: the technology from which the log originated. When it matches an integration name, Datadog automatically installs the corresponding parsers and facets. See reserved attributes.
      Returns:
      ddsource
    • setDdsource

      public void setDdsource(String ddsource)
    • ddtags

      public HTTPLogItem ddtags(String ddtags)
    • getDdtags

      @Nullable public String getDdtags()
      Tags associated with your logs.
      Returns:
      ddtags
    • setDdtags

      public void setDdtags(String ddtags)
    • hostname

      public HTTPLogItem hostname(String hostname)
    • getHostname

      @Nullable public String getHostname()
      The name of the originating host of the log.
      Returns:
      hostname
    • setHostname

      public void setHostname(String hostname)
    • message

      public HTTPLogItem message(String message)
    • getMessage

      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 HTTPLogItem 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. See reserved attributes.
      Returns:
      service
    • setService

      public void setService(String service)
    • putAdditionalProperty

      public HTTPLogItem putAdditionalProperty(String key, String 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:
      HTTPLogItem
    • getAdditionalProperties

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

      public String 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 HTTPLogItem 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