Expand description
Type definitions for Sentry metrics.
Structs§
- Custom
Unit - Custom user-defined units without builtin conversion.
- Metric
Name - Optimized string represenation of a metric name.
- Metric
Resource Identifier - A unique identifier for metrics including typing and namespacing.
- Parse
Metric Error - An error returned when metrics or MRIs cannot be parsed.
- Parse
Metric Unit Error - An error parsing a
MetricUnit
or one of its variants.
Enums§
- Duration
Unit - Time duration units used in
MetricUnit::Duration
. - Fraction
Unit - Units of fraction used in
MetricUnit::Fraction
. - Information
Unit - Size of information derived from bytes, used in
MetricUnit::Information
. - Metric
Namespace - The namespace of a metric.
- Metric
Type - The type of a
MetricResourceIdentifier
, determining its aggregation and evaluation. - Metric
Unit - The unit of measurement of a metric value.
Functions§
- can_
be_ valid_ metric_ name - Returns whether
try_normalize_metric_name
can normalize the passed name. - try_
normalize_ metric_ name - Validates a metric name and normalizes it. This is the statsd name, i.e. without type or unit.