[][src]Crate zoomies

An Asynchronous Rust Client for interacting with DogStatsD

Usage

Use a ConfigBuilder to configure an asynchronous Client.

use zoomies::{Client, ConfigBuilder};

#[async_std::main]
async fn main() -> std::io::Result<()> {
  let config = ConfigBuilder::new()
               .from_addr("127.0.0.1:10001".into())
               .to_addr("MY_STATSD_HOST:PORT".into())
               .namespace("chungus".into())
               .finish();

  let client = Client::with_config(config).await?;
  Ok(())
}

Structs

Client

Client handles sending metrics to the DogstatsD server.

ConfigBuilder
Event

Rust representation of the DogStatsD Datagram Event.

Enums

AlertType
Metric

The module, zoomies::metrics, implements the following metric types that are accepted by DataDog.

Priority

Traits

DatagramFormat