public interface DatadogClient
Modifier and Type | Interface and Description |
---|---|
static class |
DatadogClient.ClientType |
static class |
DatadogClient.Status |
Modifier and Type | Method and Description |
---|---|
TraceWriteStrategy |
createTraceWriteStrategy() |
boolean |
event(DatadogEvent event)
Sends an event to the Datadog API, including the event payload.
|
void |
flushCounters()
Submit all your counters as rate with 10 seconds intervals.
|
boolean |
incrementCounter(String name,
String hostname,
Map<String,Set<String>> tags)
Increment a counter for the given metrics.
|
Metrics |
metrics() |
boolean |
sendLogs(String payload)
Send log message.
|
boolean |
serviceCheck(String name,
DatadogClient.Status status,
String hostname,
Map<String,Set<String>> tags)
Sends a service check to the Datadog API, including the check name, and status.
|
boolean event(DatadogEvent event)
event
- - a DatadogEvent objectboolean incrementCounter(String name, String hostname, Map<String,Set<String>> tags)
name
- - metric namehostname
- - metric hostnametags
- - metric tagsvoid flushCounters()
Metrics metrics()
boolean serviceCheck(String name, DatadogClient.Status status, String hostname, Map<String,Set<String>> tags)
name
- - A String with the name of the service check to record.status
- - An Status with the status code to record for this service check.hostname
- - A String with the hostname to submit.tags
- - A Map containing the tags to submit.boolean sendLogs(String payload)
payload
- log payload to submit JSON object as StringTraceWriteStrategy createTraceWriteStrategy()
Copyright © 2016–2024. All rights reserved.