Enum glean_core::metrics::Metric [−][src]
pub enum Metric {
Show variants
Boolean(bool),
Counter(i32),
CustomDistributionExponential(Histogram<PrecomputedExponential>),
CustomDistributionLinear(Histogram<PrecomputedLinear>),
Datetime(DateTime<FixedOffset>, TimeUnit),
Experiment(RecordedExperimentData),
Quantity(i64),
String(String),
StringList(Vec<String>),
Uuid(String),
Timespan(Duration, TimeUnit),
TimingDistribution(Histogram<Functional>),
MemoryDistribution(Histogram<Functional>),
Jwe(String),
Rate(i32, i32),
}Expand description
The available metrics.
This is the in-memory and persisted layout of a metric.
Note
The order of metrics in this enum is important, as it is used for serialization. Do not reorder the variants.
Any new metric must be added at the end.
Variants
Boolean(bool)A boolean metric. See BooleanMetric for more information.
Counter(i32)A counter metric. See CounterMetric for more information.
A custom distribution with precomputed exponential bucketing.
See CustomDistributionMetric for more information.
A custom distribution with precomputed linear bucketing.
See CustomDistributionMetric for more information.
Datetime(DateTime<FixedOffset>, TimeUnit)A datetime metric. See DatetimeMetric for more information.
An experiment metric. See ExperimentMetric for more information.
Quantity(i64)A quantity metric. See QuantityMetric for more information.
String(String)A string metric. See StringMetric for more information.
A string list metric. See StringListMetric for more information.
Uuid(String)A UUID metric. See UuidMetric for more information.
A timespan metric. See TimespanMetric for more information.
A timing distribution. See TimingDistributionMetric for more information.
A memory distribution. See MemoryDistributionMetric for more information.
Jwe(String)A JWE metric. See JweMetric for more information.
A rate metric. See RateMetric for more information.
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for Metric[src]
impl<'de> Deserialize<'de> for Metric[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Metric[src]
Auto Trait Implementations
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> EncodableKey for T where
T: Serialize, [src]
impl<T> EncodableKey for T where
T: Serialize, [src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,