public final class FastStatsDClient extends Object implements StatsDClient
| Modifier and Type | Field and Description |
|---|---|
static Charset |
MESSAGE_CHARSET |
| Constructor and Description |
|---|
FastStatsDClient(Sender sender) |
FastStatsDClient(String prefix,
Sender sender) |
| Modifier and Type | Method and Description |
|---|---|
void |
count(byte[] aspect,
long delta,
double sampleRate,
Tag... tags)
Adjusts the specified counter by a given delta.
|
void |
count(byte[] aspect,
long delta,
Tag... tags)
Adjusts the specified counter by a given delta.
|
void |
gauge(byte[] aspect,
long value,
Tag... tags)
Records the latest fixed value for the specified named gauge.
|
void |
time(byte[] aspect,
long timeInMs,
Tag... tags)
Records an execution time in milliseconds for the specified named operation.
|
public static final Charset MESSAGE_CHARSET
public FastStatsDClient(Sender sender)
public void count(byte[] aspect,
long delta,
Tag... tags)
count in interface StatsDClientaspect - the name of the counter to adjustdelta - the amount to adjust the counter bytags - array of tags to be added to the datapublic void count(byte[] aspect,
long delta,
double sampleRate,
Tag... tags)
count in interface StatsDClientaspect - the name of the counter to adjustdelta - the amount to adjust the counter bysampleRate - percentage of time metric to be senttags - array of tags to be added to the datapublic void gauge(byte[] aspect,
long value,
Tag... tags)
gauge in interface StatsDClientaspect - the name of the gaugevalue - the new reading of the gaugepublic void time(byte[] aspect,
long timeInMs,
Tag... tags)
time in interface StatsDClientaspect - the name of the timed operationtimeInMs - the time in millisecondstags - array of tags to be added to the dataCopyright © 2018. All rights reserved.