pub struct MetricsResource { /* private fields */ }Expand description
Metrics — /api/v2/metrics.
Implementations§
Source§impl MetricsResource
impl MetricsResource
Sourcepub async fn list_ids(&self) -> Result<MetricIdItemsResponse, ManagerError>
pub async fn list_ids(&self) -> Result<MetricIdItemsResponse, ManagerError>
List the available metric ids.
Sourcepub async fn definitions(
&self,
) -> Result<MetricDefinitionListResponse, ManagerError>
pub async fn definitions( &self, ) -> Result<MetricDefinitionListResponse, ManagerError>
List all metric definitions.
Sourcepub async fn get(&self, id: &str) -> Result<MetricResponse, ManagerError>
pub async fn get(&self, id: &str) -> Result<MetricResponse, ManagerError>
Get a metric’s current value by id.
Sourcepub async fn describe(
&self,
id: &str,
) -> Result<MetricDefinitionItemResponse, ManagerError>
pub async fn describe( &self, id: &str, ) -> Result<MetricDefinitionItemResponse, ManagerError>
Get a metric’s definition by id.
Auto Trait Implementations§
impl !RefUnwindSafe for MetricsResource
impl !UnwindSafe for MetricsResource
impl Freeze for MetricsResource
impl Send for MetricsResource
impl Sync for MetricsResource
impl Unpin for MetricsResource
impl UnsafeUnpin for MetricsResource
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