Struct glean::CommonMetricData [−][src]
pub struct CommonMetricData { pub name: String, pub category: String, pub send_in_pings: Vec<String, Global>, pub lifetime: Lifetime, pub disabled: bool, pub dynamic_label: Option<String>, }
The common set of data shared across all different metric types.
Fields
name: String
The metric’s name.
category: String
The metric’s category.
send_in_pings: Vec<String, Global>
List of ping names to include this metric in.
lifetime: Lifetime
The metric’s lifetime.
disabled: bool
Whether 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
impl CommonMetricData
[src]
impl CommonMetricData
[src]pub fn new<A, B, C>(category: A, name: B, ping_name: C) -> CommonMetricData where
C: Into<String>,
A: Into<String>,
B: Into<String>,
[src]
C: Into<String>,
A: Into<String>,
B: Into<String>,
Creates a new metadata object.
pub fn should_record(&self) -> bool
[src]
Whether this metric should be recorded.
pub fn storage_names(&self) -> &[String]
[src]
The list of storages this metric should be recorded into.
Trait Implementations
impl Clone for CommonMetricData
[src]
impl Clone for CommonMetricData
[src]pub fn clone(&self) -> CommonMetricData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CommonMetricData
[src]
impl Debug for CommonMetricData
[src]impl Default for CommonMetricData
[src]
impl Default for CommonMetricData
[src]pub fn default() -> CommonMetricData
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommonMetricData
impl RefUnwindSafe for CommonMetricData
impl Send for CommonMetricData
impl Send for CommonMetricData
impl Sync for CommonMetricData
impl Sync for CommonMetricData
impl Unpin for CommonMetricData
impl Unpin for CommonMetricData
impl UnwindSafe for CommonMetricData
impl UnwindSafe for CommonMetricData