Add the specified publisher for the named category.
Declared in <balm_metricsmanager.h>
int
addSpecificPublisher(
char const* categoryName,
bsl::shared_ptr<Publisher> const& publisher);
Add the specified publisher to the set of publishers that will be used to publish metrics for the category identified by the specified categoryName. Return 0 on success, and a non-zero value with no effect if publisher has already been registered to publish the identified category. The behavior is undefined unless categoryName is null-terminated. Note that this method will fail and return a non-zero value if publisher has previously been registered to publish every category (using the alternative addGeneralPublisher method).
0 on success, and a non-zero value with no effect if publisher has already been registered for the named category
| Name | Description |
|---|---|
| categoryName | null-terminated category name |
| publisher | publisher to register for the named category |