Return the address of the modifiable default integer collector identified by the specified category and metricName.
Declared in <balm_collectorrepository.h>
IntegerCollector*
getDefaultIntegerCollector(
char const* category,
char const* metricName);
If a default integer collector for the identified metric does not already exist in the repository, create one, add it to the repository, and return its address. In addition, if the identified metric has not already been registered, add the identified metric to the metricRegistry supplied at construction. The behavior is undefined unless category and metricName are null-terminated. Note that this operation is logically equivalent to: ` getDefaultIntegerCollector(registry().getId(category, metricName)) `
address of the default integer collector for the identified metric
| Name | Description |
|---|---|
| category | null-terminated category name |
| metricName | null-terminated metric name |