[#BloombergLP-balm-MetricRecord]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::MetricRecord
:relfileprefix: ../../
:mrdocs:

Each instance of this class represents the aggregated value of a metric&period; 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&period; The default `metricId` is the invalid id value, the default `count` is 0, the defined `k&lowbar;DEFAULT&lowbar;MIN` constant (the representation for positive default `total` is 0&period;0, the default `min` is the infinity), and the default `max` is the defined `k&lowbar;DEFAULT&lowbar;MAX` constant (the representation for negative infinity)&period;

== Synopsis

Declared in `&lt;balm&lowbar;metricrecord&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class MetricRecord;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/MetricRecord/2constructor-0fc.adoc[`MetricRecord`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/balm/MetricRecord/count-01.adoc[`count`] 
| `count` overloads
| xref:BloombergLP/balm/MetricRecord/max-0c.adoc[`max`] 
| `max` overloads
| xref:BloombergLP/balm/MetricRecord/metricId-07.adoc[`metricId`] 
| `metricId` overloads
| xref:BloombergLP/balm/MetricRecord/min-0d.adoc[`min`] 
| `min` overloads
| xref:BloombergLP/balm/MetricRecord/print.adoc[`print`] 
| Write a description of this record to the specified `stream` and return a reference to the modifiable `stream`&period;
| xref:BloombergLP/balm/MetricRecord/total-03.adoc[`total`] 
| `total` overloads
| xref:BloombergLP/balm/MetricRecord/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;MetricRecord, is&lowbar;trivially&lowbar;copyable&gt;`] 
| Declare that this type is trivially copyable&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/MetricRecord/DEFAULT_MAX.adoc[`DEFAULT&lowbar;MAX`] 
| Deprecated alias for `k&lowbar;DEFAULT&lowbar;MAX`&period;
| xref:BloombergLP/balm/MetricRecord/DEFAULT_MIN.adoc[`DEFAULT&lowbar;MIN`] 
| Deprecated alias for `k&lowbar;DEFAULT&lowbar;MIN`&period;
| xref:BloombergLP/balm/MetricRecord/k_DEFAULT_MAX.adoc[`k&lowbar;DEFAULT&lowbar;MAX`] 
| Default maximum value (negative infinity)&period;
| xref:BloombergLP/balm/MetricRecord/k_DEFAULT_MIN.adoc[`k&lowbar;DEFAULT&lowbar;MIN`] 
| Default minimum value (positive infinity)&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/operator_not_eq-06.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` metric records do not have the same value and `false` otherwise&period; Two records do not have same value if they differ in their respective values for `metricId`, `count`, `total`, `min`, or `max` attributes&period;
| xref:BloombergLP/balm/operator_eq-0b.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` metric records have the same value and `false` otherwise&period; Two records have the same value if they have the same values for their `metricId`, `count`, `total`, `min`, and `max` attributes, respectively&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
