Struct glean_core::CommonMetricData [−][src]
pub struct CommonMetricData {
pub name: String,
pub category: String,
pub send_in_pings: Vec<String>,
pub lifetime: Lifetime,
pub disabled: bool,
pub dynamic_label: Option<String>,
}Expand description
The common set of data shared across all different metric types.
Fields
name: StringThe metric’s name.
category: StringThe metric’s category.
send_in_pings: Vec<String>List of ping names to include this metric in.
lifetime: LifetimeThe metric’s lifetime.
disabled: boolWhether or not the metric is disabled.
Disabled metrics are never recorded.
dynamic_label: Option<String>Dynamic label.
When a LabeledMetric<T> factory creates the specific
metric to be recorded to, dynamic labels are stored in the specific
label so that we can validate them when the Glean singleton is
available.
Implementations
Creates a new metadata object.
Whether this metric should be recorded.
The list of storages this metric should be recorded into.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommonMetricDataimpl Send for CommonMetricDataimpl Sync for CommonMetricDataimpl Unpin for CommonMetricDataimpl UnwindSafe for CommonMetricDataBlanket Implementations
Mutably borrows from an owned value. Read more