Module metrics

Module metrics 

Source
Expand description

The different metric types supported by the Glean SDK to handle data.

Structs§

BooleanMetric
A boolean metric.
CounterMetric
A counter metric.
CustomDistributionMetric
A custom distribution metric.
Datetime
Representation of a date, time and timezone.
DatetimeMetric
A datetime metric.
DenominatorMetric
A Denominator metric (a kind of count shared among Rate metrics).
DistributionData
A snapshot of all buckets and the accumulated sum of a distribution.
DualLabeledCounterMetric
A dual labled metric
EventMetric
An event metric.
LabeledMetric
A labeled metric.
LocalCustomDistribution
Experimental: A histogram buffer associated with a specific instance of a CustomDistributionMetric.
LocalMemoryDistribution
Experimental: A histogram buffer associated with a specific instance of a MemoryDistributionMetric.
LocalTimingDistribution
Experimental: A histogram buffer associated with a specific instance of a TimingDistributionMetric.
MemoryDistributionMetric
A memory distribution metric.
NumeratorMetric
Developer-facing API for recording rate metrics with external denominators.
ObjectMetric
An object metric.
PingType
Stores information about a ping.
QuantityMetric
A quantity metric.
Rate
A rate value as given by its numerator and denominator.
RateMetric
A rate metric.
RecordedEvent
Represents the recorded data for a single event.
RecordedExperiment
Deserialized experiment data.
RemoteSettingsConfig
Represents a list of metrics and an associated boolean property indicating if the metric is enabled from the remote-settings configuration store.
StringListMetric
A string list metric.
StringMetric
A string metric.
TextMetric
A text metric.
TimerId
Identifier for a running timer.
TimespanMetric
A timespan metric.
TimingDistributionMetric
A timing distribution metric.
UrlMetric
A URL metric.
UuidMetric
An UUID metric.

Enums§

DynamicLabelType
The type of dynamic label applied to a base metric. Used to help identify the necessary validation to be performed.
HistogramType
Different kinds of histograms.
JsonValue
Represents any valid JSON value.
LabeledMetricData
The metric data needed to construct inner submetrics.
MemoryUnit
Different resolutions supported by the memory related metric types (e.g. MemoryDistributionMetric).
Metric
The available metrics.
TimeUnit
Different resolutions supported by the time related metric types (e.g. DatetimeMetric).

Traits§

MetricIdentifier
A MetricIdentifier describes an interface for retrieving an identifier (category, name, label) for a metric
MetricType
A MetricType describes common behavior across all metrics.
TestGetValue
TestGetValue describes an interface for retrieving the value for a given metric

Type Aliases§

LabeledBoolean
A labeled boolean.
LabeledCounter
A labeled counter.
LabeledCustomDistribution
A labeled custom_distribution.
LabeledMemoryDistribution
A labeled memory_distribution.
LabeledQuantity
A labeled quantity
LabeledString
A labeled string.
LabeledTimingDistribution
A labeled timing_distribution.