Class ServiceCheck

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceCheck extends Object
An object containing service check and status.
  • Field Details

  • Constructor Details

  • Method Details

    • check

      public ServiceCheck check(String check)
    • getCheck

      public String getCheck()
      The check.
      Returns:
      check
    • setCheck

      public void setCheck(String check)
    • hostName

      public ServiceCheck hostName(String hostName)
    • getHostName

      public String getHostName()
      The host name correlated with the check.
      Returns:
      hostName
    • setHostName

      public void setHostName(String hostName)
    • message

      public ServiceCheck message(String message)
    • getMessage

      @Nullable public String getMessage()
      Message containing check status.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • status

      public ServiceCheck status(ServiceCheckStatus status)
    • getStatus

      public ServiceCheckStatus getStatus()
      The status of a service check. Set to 0 for OK, 1 for warning, 2 for critical, and 3 for unknown.
      Returns:
      status
    • setStatus

      public void setStatus(ServiceCheckStatus status)
    • tags

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

      public ServiceCheck addTagsItem(String tagsItem)
    • getTags

      public List<String> getTags()
      Tags related to a check.
      Returns:
      tags
    • setTags

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

      public ServiceCheck timestamp(Long timestamp)
    • getTimestamp

      @Nullable public Long getTimestamp()
      Time of check.
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(Long timestamp)
    • putAdditionalProperty

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