ddog •

A Minimal Datadog SDK Built in Pure Rust.
Getting Started
Add the ddog
crate to your project:
= "0.1.0"
Usage
The simplest way to use the Datadog SDK is by using the Builder.
To create a new builder, you can instantiate one with the new method: let mut builder = ddog::prelude::Builder::new();
.
Then, to create a new query with a given endpoint, the Builder has explicit methods exposed for the specified endpoint. For example, to post metrics series data to datadog, call the post_series method which returns a Route trait.
Examples
Below we show how to use ddog to post metric series data to the Datadog API.
Note: This request will not succeed since the DD_API_KEY
environment variable is set to an invalid value in the request headers section.
use *;
async ;