Create a metric object to collect values for the metric implied by the specified collector.

Synopsis

Declared in <balm_metric.h>

explicit
Metric(Collector* collector);

Description

The collector identifies the metric via collector‐>metricId(). The behavior is undefined unless collector is a valid address of a Collector object and collector has a valid id (i.e., collector‐>metricId().isValid()).

Parameters

Name

Description

collector

collector identifying the metric to record

Created with MrDocs