pub struct MetricsApi { /* private fields */ }Expand description
API client for Datadog metrics endpoints.
Implementations§
Source§impl MetricsApi
impl MetricsApi
Sourcepub const fn new(client: DatadogClient) -> Self
pub const fn new(client: DatadogClient) -> Self
Creates a new metrics API client.
Sourcepub async fn query_metrics(
&self,
from: i64,
to: i64,
query: &str,
) -> Result<MetricsQueryResponse>
pub async fn query_metrics( &self, from: i64, to: i64, query: &str, ) -> Result<MetricsQueryResponse>
Sourcepub async fn list_metrics(&self, query: &str) -> Result<MetricsListResponse>
pub async fn list_metrics(&self, query: &str) -> Result<MetricsListResponse>
Sourcepub async fn get_metric_metadata(
&self,
metric_name: &str,
) -> Result<MetricMetadata>
pub async fn get_metric_metadata( &self, metric_name: &str, ) -> Result<MetricMetadata>
Auto Trait Implementations§
impl Freeze for MetricsApi
impl !RefUnwindSafe for MetricsApi
impl Send for MetricsApi
impl Sync for MetricsApi
impl Unpin for MetricsApi
impl !UnwindSafe for MetricsApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more