Constructors

Synopses

Declared in <balm_metric.h>

Create a metric object that will record values for the same metric as the specified original metric.

Metric(Metric const& original);

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

explicit
Metric(Collector* collector);

Create a metric object to collect values for the specified metricId.

explicit
Metric(
    MetricId const& metricId,
    MetricsManager* manager = 0);

Create a metric object to collect values for the metric identified by the specified null‐terminated strings category and name.

Metric(
    char const* category,
    char const* name,
    MetricsManager* manager = 0);

Parameters

Name

Description

original

metric whose collector association is copied

collector

collector identifying the metric to record

metricId

identity of the metric to collect

manager

metrics manager used to provide a collector (optional)

category

null‐terminated category name

name

null‐terminated metric name

Created with MrDocs