Alias for a callback that collects metric records and optionally resets them.
Synopsis
Declared in <balm_metricsmanager.h>
typedef bsl::function<void(xref:bsl/vector-00d.adoc[bsl::vector<MetricRecord>*, bool)>] RecordsCollectionCallback;
Description
RecordsCollectionCallback is an alias for a callback function that appends to the supplied MetricRecord vector the values of the collected metrics, and, if the provided bool is true, resets those metrics to their default values. Clients can register callbacks matching this prototype with the metrics manager. Here is an example prototype matching this callback: ` void collectionCb(bsl::vector<MetricRecord> *records, bool resetFlag); `
Created with MrDocs