Trait glean_core::metrics::MetricType [−][src]
A MetricType
describes common behavior across all metrics.
Required methods
fn meta(&self) -> &CommonMetricData
[src]
Access the stored metadata
fn meta_mut(&mut self) -> &mut CommonMetricData
[src]
Access the stored metadata mutable
Provided methods
fn should_record(&self, glean: &Glean) -> bool
[src]
Whether this metric should currently be recorded
This depends on the metrics own state, as determined by its metadata, and whether upload is enabled on the Glean object.