@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceCheck extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CHECK |
static String |
JSON_PROPERTY_HOST_NAME |
static String |
JSON_PROPERTY_MESSAGE |
static String |
JSON_PROPERTY_STATUS |
static String |
JSON_PROPERTY_TAGS |
static String |
JSON_PROPERTY_TIMESTAMP |
boolean |
unparsed |
| Constructor and Description |
|---|
ServiceCheck() |
ServiceCheck(String check,
String hostName,
ServiceCheckStatus status,
List<String> tags) |
| Modifier and Type | Method and Description |
|---|---|
ServiceCheck |
addTagsItem(String tagsItem) |
ServiceCheck |
check(String check) |
boolean |
equals(Object o)
Return true if this ServiceCheck object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getCheck()
The check.
|
String |
getHostName()
The host name correlated with the check.
|
String |
getMessage()
Message containing check status.
|
ServiceCheckStatus |
getStatus()
The status of a service check.
|
List<String> |
getTags()
Tags related to a check.
|
Long |
getTimestamp()
Time of check.
|
int |
hashCode() |
ServiceCheck |
hostName(String hostName) |
ServiceCheck |
message(String message) |
ServiceCheck |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setCheck(String check) |
void |
setHostName(String hostName) |
void |
setMessage(String message) |
void |
setStatus(ServiceCheckStatus status) |
void |
setTags(List<String> tags) |
void |
setTimestamp(Long timestamp) |
ServiceCheck |
status(ServiceCheckStatus status) |
ServiceCheck |
tags(List<String> tags) |
ServiceCheck |
timestamp(Long timestamp) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_CHECK
public static final String JSON_PROPERTY_HOST_NAME
public static final String JSON_PROPERTY_MESSAGE
public static final String JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_TAGS
public static final String JSON_PROPERTY_TIMESTAMP
public ServiceCheck()
public ServiceCheck(String check, String hostName, ServiceCheckStatus status, List<String> tags)
public ServiceCheck check(String check)
public String getCheck()
public void setCheck(String check)
public ServiceCheck hostName(String hostName)
public String getHostName()
public void setHostName(String hostName)
public ServiceCheck message(String message)
@Nullable public String getMessage()
public void setMessage(String message)
public ServiceCheck status(ServiceCheckStatus status)
public ServiceCheckStatus getStatus()
0 for OK, 1 for warning,
2 for critical, and 3 for unknown.public void setStatus(ServiceCheckStatus status)
public ServiceCheck tags(List<String> tags)
public ServiceCheck addTagsItem(String tagsItem)
public ServiceCheck timestamp(Long timestamp)
@Nullable public Long getTimestamp()
public void setTimestamp(Long timestamp)
public ServiceCheck putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.