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

Return `true` if this metric will actively record metrics, and `false` otherwise&period; If the returned value is `false`, the manipulator operations will have no effect&period; A metric will be inactive if either (1) it was not initialized with a valid metric identifier or (2) the associated metric category has been disabled (see the `MetricsManager` method `setCategoryEnabled`)&period; Note that invoking this method is logically equivalent to the expression `0 !&equals; collector() &amp;&amp; metricId()&period;category()&hyphen;&gt;enabled()`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
isActive() const;
----


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