pub struct Metric {
pub aggregation: Option<String>,
pub category: Option<LocalizedString>,
pub derived: Option<DerivedMetric>,
pub display_label: Option<LocalizedString>,
pub has_nonzero_data: Option<bool>,
pub hot_value: Option<f32>,
pub indexed_hot_keys: Option<HashMap<String, IndexedHotKey>>,
pub indexed_key_range_infos: Option<HashMap<String, IndexedKeyRangeInfos>>,
pub info: Option<LocalizedString>,
pub matrix: Option<MetricMatrix>,
pub unit: Option<LocalizedString>,
pub visible: Option<bool>,
}
Expand description
A message representing the actual monitoring data, values for each key bucket over time, of a metric.
This type is not used in any activity, and only used as part of another schema.
Fields§
§aggregation: Option<String>
The aggregation function used to aggregate each key bucket
category: Option<LocalizedString>
The category of the metric, e.g. “Activity”, “Alerts”, “Reads”, etc.
derived: Option<DerivedMetric>
The references to numerator and denominator metrics for a derived metric.
display_label: Option<LocalizedString>
The displayed label of the metric.
has_nonzero_data: Option<bool>
Whether the metric has any non-zero data.
hot_value: Option<f32>
The value that is considered hot for the metric. On a per metric basis hotness signals high utilization and something that might potentially be a cause for concern by the end user. hot_value is used to calibrate and scale visual color scales.
indexed_hot_keys: Option<HashMap<String, IndexedHotKey>>
The (sparse) mapping from time index to an IndexedHotKey message, representing those time intervals for which there are hot keys.
indexed_key_range_infos: Option<HashMap<String, IndexedKeyRangeInfos>>
The (sparse) mapping from time interval index to an IndexedKeyRangeInfos message, representing those time intervals for which there are informational messages concerning key ranges.
info: Option<LocalizedString>
Information about the metric.
matrix: Option<MetricMatrix>
The data for the metric as a matrix.
unit: Option<LocalizedString>
The unit of the metric.
visible: Option<bool>
Whether the metric is visible to the end user.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metric
impl<'de> Deserialize<'de> for Metric
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>,
impl Part for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more