com.timgroup.statsd
Class ServiceCheck

java.lang.Object
  extended by 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


Field Summary
static int CRITICAL
           
static int OK
           
static int UNKNOWN
           
static int WARNING
           
 
Constructor Summary
ServiceCheck()
           
ServiceCheck(String name, int status)
           
ServiceCheck(String name, int status, String message, String[] tags)
           
ServiceCheck(String name, int status, String message, String hostname, String[] tags)
           
 
Method Summary
 String getEscapedMessage()
           
 String getHostname()
           
 String getMessage()
           
 String getName()
           
 int getStatus()
           
 String[] getTags()
           
 int getTimestamp()
           
 void setHostname(String hostname)
           
 void setMessage(String message)
           
 void setName(String name)
           
 void setStatus(int status)
           
 void setTags(String... tags)
           
 void setTimestamp(int timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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.