BloombergLP::balm::CollectorRepository::getAddedCollectors

Append shared pointers to any added collectors for the specified metricId and return the count found.

Synopsis

Declared in <balm_collectorrepository.h>

int
getAddedCollectors(
    bsl::vector<bsl::shared_ptr<Collector>>* collectors,
    bsl::vector<bsl::shared_ptr<IntegerCollector>>* intCollectors,
    MetricId const& metricId);

Description

Append to the specified collectors and intCollectors the shared pointers to any added collectors for the specified metricId, and return the combined total number found.

Return Value

combined total number of added collectors found

Parameters

NameDescription
collectorsreceives shared pointers to added collectors
intCollectorsreceives shared pointers to added integer collectors
metricIdidentity of the metric whose added collectors are retrieved