Interface DatadogClient
-
- All Known Implementing Classes:
DatadogAgentClient,DatadogApiClient
public interface DatadogClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDatadogClient.Status
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LogWriteStrategycreateLogWriteStrategy()TraceWriteStrategycreateTraceWriteStrategy()booleanevent(DatadogEvent event)Sends an event to the Datadog API, including the event payload.MetricsClientmetrics()booleanserviceCheck(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.
-
-
-
Method Detail
-
event
boolean event(DatadogEvent event)
Sends an event to the Datadog API, including the event payload.- Parameters:
event- - a DatadogEvent object- Returns:
- a boolean to signify the success or failure of the HTTP POST request.
-
metrics
MetricsClient metrics()
-
serviceCheck
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.- Parameters:
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.- Returns:
- a boolean to signify the success or failure of the HTTP POST request.
-
createLogWriteStrategy
LogWriteStrategy createLogWriteStrategy()
-
createTraceWriteStrategy
TraceWriteStrategy createTraceWriteStrategy()
-
-