pub struct StatusMetric {
pub name: String,
pub value: f64,
pub labels: HashMap<String, String>,
}Expand description
Metric sample used in provider status responses.
Fields§
§name: StringMetric name following the monitoring schema.
value: f64Numeric value captured for the metric.
labels: HashMap<String, String>Additional labels enriching the metric sample.
Trait Implementations§
Source§impl Clone for StatusMetric
impl Clone for StatusMetric
Source§fn clone(&self) -> StatusMetric
fn clone(&self) -> StatusMetric
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusMetric
impl Debug for StatusMetric
Source§impl<'de> Deserialize<'de> for StatusMetric
impl<'de> Deserialize<'de> for StatusMetric
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StatusMetric
impl RefUnwindSafe for StatusMetric
impl Send for StatusMetric
impl Sync for StatusMetric
impl Unpin for StatusMetric
impl UnwindSafe for StatusMetric
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