[−][src]Enum glean_core::metrics::Metric
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.
Implementations
impl Metric
[src]
pub fn ping_section(&self) -> &'static str
[src]
The ping section the metric fits into.
This determines the section of the ping to place the metric data in when assembling the ping payload.
pub fn as_json(&self) -> JsonValue
[src]
The JSON representation of the metric's data
Trait Implementations
impl Clone for Metric
[src]
impl Debug for Metric
[src]
impl<'de> Deserialize<'de> for Metric
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Metric> for Metric
[src]
impl Serialize for Metric
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> EncodableKey for T where
T: Serialize,
[src]
T: Serialize,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,