datadog_client
Types
HTTP host for the Datadog API. Default datadoghq.com (US1).
Use datadoghq.eu, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, etc.
pub type Client {
Client(api_key: String, site: String)
}
Constructors
-
Client(api_key: String, site: String)
Values
pub fn send(
client: Client,
metrics: List(metric.Metric),
) -> Result(response.Response(String), SendError)
POST one or more metrics to /api/v1/series. Erlang target.
pub fn send_one(
client: Client,
m: metric.Metric,
) -> Result(response.Response(String), SendError)
Send a single metric. Convenience over send. Erlang target.
pub fn to_request(
client: Client,
metrics: List(metric.Metric),
) -> request.Request(String)
Build the HTTPS request body for /api/v1/series without sending it.
Use this if you want to send via your own HTTP backend.