com.timgroup.statsd
Class ServiceCheck
java.lang.Object
com.timgroup.statsd.ServiceCheck
public class ServiceCheck
- extends Object
A service check model, which is used to format a service check message
sent to the datadog agent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OK
public static final int OK
- See Also:
- Constant Field Values
WARNING
public static final int WARNING
- See Also:
- Constant Field Values
CRITICAL
public static final int CRITICAL
- See Also:
- Constant Field Values
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
ServiceCheck
public ServiceCheck()
ServiceCheck
public ServiceCheck(String name,
int status)
- Parameters:
name - status -
ServiceCheck
public ServiceCheck(String name,
int status,
String message,
String[] tags)
ServiceCheck
public ServiceCheck(String name,
int status,
String message,
String hostname,
String[] tags)
getName
public String getName()
- Returns:
setName
public void setName(String name)
- Parameters:
name -
getStatus
public int getStatus()
- Returns:
setStatus
public void setStatus(int status)
- Parameters:
status -
getMessage
public String getMessage()
- Returns:
getEscapedMessage
public String getEscapedMessage()
- Returns:
setMessage
public void setMessage(String message)
- Parameters:
message -
getHostname
public String getHostname()
- Returns:
setHostname
public void setHostname(String hostname)
- Parameters:
hostname -
getTimestamp
public int getTimestamp()
- Returns:
setTimestamp
public void setTimestamp(int timestamp)
- Parameters:
timestamp -
getTags
public String[] getTags()
- Returns:
setTags
public void setTags(String... tags)
- Parameters:
tags -
Copyright © 2015. All rights reserved.