See: Description
| Interface | Description |
|---|---|
| Message |
A message that can be sent to DogStatD.
|
| Class | Description |
|---|---|
| Counter |
A Counter measures how many occurrences per second.
|
| Event |
Event is message with title, text, and metadata.
|
| Gauge |
A Gauge records a value of a metric at a particular time.
|
| Histogram |
A Histogram tracks the distribution of a set of values.
|
| Sender |
Send formatted UDP messages to a DogStatD.
|
| ServiceCheck |
A ServiceCheck is the current status of a service.
|
| Set |
Sets are used to count the number of unique elements in a group.
|
| Enum | Description |
|---|---|
| Event.Alert | |
| Event.Priority | |
| ServiceCheck.Status |
Sender with the address of the agent.Sender.send(Message)
to send DataDog a message.
static public final Sender METRICS = new Sender();
public void workSamples() {
METRICS.send(new Histogram("histogram.name", latency);
METRICS.send(new Gauge("round", i, tag));
METRICS.send(new Gauge("round", i, tag));
METRICS.send(new Counter("pi", 3.14));
METRICS.send(new Event("title", "message", "tag1", "tag2"));
}
Copyright © 2016–2018. All rights reserved.