[#BloombergLP-balm-Metrics_Helper]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::Metrics&lowbar;Helper
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for a suite of functions used in the implementation of the macros defined in this component&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct Metrics&lowbar;Helper;
----

== Description

This type is an implementation detail and _must_ _not_ be used (directly) by clients outside of this component&period;

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/Metrics_Helper/NameType.adoc[`NameType`] 
| Identifier type constants for `logEmptyName`&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/Metrics_Helper/getCollector.adoc[`getCollector`] 
| Return the address of the default metrics collector for the metric identified by the specified `category` and `metric` names&period; The behavior is undefined unless the `balm` metrics manager singleton is valid&period;
| xref:BloombergLP/balm/Metrics_Helper/getIntegerCollector.adoc[`getIntegerCollector`] 
| Return the address of the default integer metrics collector for the metric identified by the specified `category` and `metric` names&period; The behavior is undefined unless the `balm` metrics manager singleton is valid&period;
| xref:BloombergLP/balm/Metrics_Helper/initializeCategoryHolder.adoc[`initializeCategoryHolder`] 
| Load into the specified `holder` the address and enabled status of the specified `category`, and add `holder` to the list of category holders for `category`&period; The behavior is undefined unless the balm metrics manager singleton is valid&period;
| xref:BloombergLP/balm/Metrics_Helper/logEmptyName.adoc[`logEmptyName`] 
| If the specified `name` is empty or contains only whitespace, then log a warning message indicating whether `name` is a category or a metric, depending on the specified `type`, and the location at which this function is called, indicated by the specified `file` and `line`&semi; otherwise, do nothing&period;
| xref:BloombergLP/balm/Metrics_Helper/setPublicationType.adoc[`setPublicationType`] 
| Set the publication type for the metric identified by the specified `id` to the specified `type`&period; The behavior is undefined unless the `balm` metrics manager singleton is valid, and `id` is a valid identifier supplied by the singleton metrics manager&period;
|===



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