[#BloombergLP-bdlm-Metric]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlm.adoc[bdlm]::Metric
:relfileprefix: ../../
:mrdocs:

This class provides storage for various types of metric values&period;

== Synopsis

Declared in `&lt;bdlm&lowbar;metric&period;h&gt;`

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

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlm/Metric/Gauge.adoc[`Gauge`] 
| This `typedef` is an alias for a gauge metric value&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlm/Metric/2constructor-08.adoc[`Metric`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlm/Metric/operator_assign.adoc[`operator&equals;`] 
| Assign to this metric the specified `value`&period;
| xref:BloombergLP/bdlm/Metric/isGauge.adoc[`isGauge`] 
| Return `true` if the value of this metric is of gauge type, and `false` otherwise&period;
| xref:BloombergLP/bdlm/Metric/theGauge.adoc[`theGauge`] 
| Return a `const` reference to the value of this metric of gauge type&period; The behavior is undefined unless `true &equals;&equals; isGuage()`&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bdlm/operator_not_eq-06.adoc[BloombergLP::bdlm::operator!&equals;]`
| Return `true` if the specified `lhs` and `rhs` metrics do not have the same value and `false` otherwise&period;
| `xref:BloombergLP/bdlm/operator_eq-0e.adoc[BloombergLP::bdlm::operator&equals;&equals;]`
| Return `true` if the specified `lhs` and `rhs` metrics have the same value and `false` otherwise&period;
|===


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