Crate fidl_fuchsia_metrics_common

Source

Macros§

MetricEventPayloadUnknown
Pattern that matches an unknown MetricEventPayload member.

Structs§

HistogramBucket
One bucket of a histogram, used by the method LogIntegerHistogram.
MetricEvent
A specification of an event that occurred to be passed to LogMetricEvents().
MetricEventLoggerLogIntegerHistogramRequest
MetricEventLoggerLogIntegerRequest
MetricEventLoggerLogMetricEventsRequest
MetricEventLoggerLogOccurrenceRequest
MetricEventLoggerLogStringRequest
ProjectSpec
A specification identifying a project to log events for.

Enums§

Error
Error codes for MetricEventLogger operations.
MetricEventPayload
The variadic part of a MetricEvent.

Constants§

MAX_BATCHED_EVENTS
Maximum number of events that may be logged in a single FIDL call.
MAX_BYTES_PER_EVENT
The maximum size of a single Event is 100 KB.
MAX_EXPERIMENT_IDS
Maximum number of experiment ids that can be provided to a single logger.
MAX_HISTOGRAM_BUCKETS
This is intended as a reasonable maximum number of histogram buckets per event.
MAX_METRIC_DIMENSIONS
Maximum number of event codes that can be associated with a single event.
MAX_STRING_EVENT_SIZE
String events should not be longer than this.

Type Aliases§

EventVector
A vector of event codes. When used in one of the Log*() calls below, there must be one event code for each dimension of the metric whose metric_id is supplied, or else the call will return INVALID_ARGUMENTS.
IntegerHistogram
A histogram that assigns a count to each of several integer ranges. To save space/memory/bandwidth, each bucket index should only be included once, and empty buckets should not be included. The order of the vector is immaterial.