Struct prima_datadog::Datadog [−][src]
pub struct Datadog { /* fields omitted */ }Expand description
The Datadog struct is the main entry point for the library
Implementations
Initializes a Datadog instance with a struct that implements the Configuration trait
pub fn new<'a>(
client: impl 'static + DogstatsdClient + Send + Sync,
is_reporting_enabled: bool,
default_tags: impl IntoIterator<Item = &'a str>
) -> Self
pub fn new<'a>(
client: impl 'static + DogstatsdClient + Send + Sync,
is_reporting_enabled: bool,
default_tags: impl IntoIterator<Item = &'a str>
) -> Self
initialize a Datadog instance with bare parameters. This should be used carefully. Use Datadog::init instead
Increment a StatsD counter
Decrement a StatsD counter
Make an arbitrary change to a StatsD counter
Make an arbitrary change to a StatsD counter
Send your own timing metric in milliseconds
Report an arbitrary value as a gauge
Report a value in a histogram
pub fn distribution(
&self,
metric: impl AsRef<str>,
value: impl AsRef<str>,
tags: impl IntoIterator<Item = String>
)
pub fn distribution(
&self,
metric: impl AsRef<str>,
value: impl AsRef<str>,
tags: impl IntoIterator<Item = String>
)
Report a value in a distribution