Interface MetricsClient
-
- All Superinterfaces:
AutoCloseable
public interface MetricsClient extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
gauge(String name, double value, String hostname, Map<String,Set<String>> tags)
Sends a metric to the Datadog API, including the gauge name and value.void
rate(String name, double value, String hostname, Map<String,Set<String>> tags)
Sends a rate metric to the Datadog API, including the counter name and value.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
gauge
void gauge(String name, double value, String hostname, Map<String,Set<String>> tags)
Sends a metric to the Datadog API, including the gauge name and value.- Parameters:
name
- - A String with the name of the metric to record.value
- - A long containing the value to submit.hostname
- - A String with the hostname to submit.tags
- - A Map containing the tags to submit.
-
rate
void rate(String name, double value, String hostname, Map<String,Set<String>> tags)
Sends a rate metric to the Datadog API, including the counter name and value.- Parameters:
name
- - A String with the name of the metric to record.value
- - A long containing the value to submit.hostname
- - A String with the hostname to submit.tags
- - A Map containing the tags to submit.
-
-