Each instance of this class represents the aggregated value of a metric.

Synopsis

Declared in <balm_metricrecord.h>

class MetricRecord;

Description

A metric record contains a MetricId object (identifying the metric), the number of times the measured event has occurred as well as the minimum, maximum, and total of the measured value. The default metricId is the invalid id value, the default count is 0, the default total is 0.0, the default min is the defined k_DEFAULT_MIN constant (the representation for positive infinity), and the default max is the defined k_DEFAULT_MAX constant (the representation for negative infinity).

Member Functions

Name

Description

MetricRecord [constructor]

Constructors

count

count overloads

max

max overloads

metricId

metricId overloads

min

min overloads

print

Write a description of this record to the specified stream and return a reference to the modifiable stream.

total

total overloads

operator BloombergLP::bslmf::NestedTraitDeclaration<MetricRecord, is_trivially_copyable>

Declare that this type is trivially copyable.

Static Data Members

Name

Description

DEFAULT_MAX

Deprecated alias for k_DEFAULT_MAX.

DEFAULT_MIN

Deprecated alias for k_DEFAULT_MIN.

k_DEFAULT_MAX

Default maximum value (negative infinity).

k_DEFAULT_MIN

Default minimum value (positive infinity).

Non-Member Functions

Name

Description

operator!=

Return true if the specified lhs and rhs metric records do not have the same value and false otherwise.

operator==

Return true if the specified lhs and rhs metric records have the same value and false otherwise.

Created with MrDocs