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.