Package com.datadog.api.client.v1.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServiceCheck(String check, String hostName, ServiceCheckStatus status, List<String> tags) -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) booleanReturn true if this ServiceCheck object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCheck()The check.The host name correlated with the check.Message containing check status.The status of a service check.getTags()Tags related to a check.Time of check.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetHostName(String hostName) voidsetMessage(String message) voidsetStatus(ServiceCheckStatus status) voidvoidsetTimestamp(Long timestamp) status(ServiceCheckStatus status) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CHECK
- See Also:
-
JSON_PROPERTY_HOST_NAME
- See Also:
-
JSON_PROPERTY_MESSAGE
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TIMESTAMP
- See Also:
-
-
Constructor Details
-
ServiceCheck
public ServiceCheck() -
ServiceCheck
-
-
Method Details
-
check
-
getCheck
The check.- Returns:
- check
-
setCheck
-
hostName
-
getHostName
The host name correlated with the check.- Returns:
- hostName
-
setHostName
-
message
-
getMessage
Message containing check status.- Returns:
- message
-
setMessage
-
status
-
getStatus
The status of a service check. Set to0for OK,1for warning,2for critical, and3for unknown.- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
Tags related to a check.- Returns:
- tags
-
setTags
-
timestamp
-
getTimestamp
Time of check.- 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:
- ServiceCheck
-
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 ServiceCheck object is equal to o. -
hashCode
public int hashCode() -
toString
-