Module glean_core::traits
source · Expand description
API definitions for the different metric types supported by the Glean SDK.
Individual metric types implement this trait to expose the specific metrics API. It can be used by wrapping implementations to guarantee API conformance.
Structs
- This type represents all possible errors that can occur when serializing or deserializing an object from/to JSON.
Enums
- The possible errors when parsing to an extra key.
- Different kinds of histograms.
- Default of no extra keys for events.
Traits
- A description for the
BooleanMetric
type. - A description for the
CounterMetric
type. - A description for the
CustomDistributionMetric
type. - A description for the
DatetimeMetric
type. - A description for the
EventMetric
type. - Extra keys for events.
- A description for the
LabeledMetric
type. - A description for the
MemoryDistributionMetric
type. - A description for the
NumeratorMetric
subtype of theRateMetric
type. - An object that can be serialized into JSON.
- A description for the
PingType
type. - A description for the
QuantityMetric
type. - A description for the
RateMetric
type. - A description for the
StringMetric
type. - A description for the
StringListMetric
type. - A description for the
TextMetric
type. - A description for the
TimespanMetric
type. - A description for the
TimingDistributionMetric
type. - A description for the
UrlMetric
type. - A description for the
UuidMetric
type.