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

Name

Description

collectors

receives shared pointers to added collectors

intCollectors

receives shared pointers to added integer collectors

metricId

identity of the metric whose added collectors are retrieved

Created with MrDocs