This class provides a mechanism for collecting and aggregating the value of a metric over a period of time. The collector contains a MetricRecord object that holds the identity of the metric being collected, the number of times an event occurred, and the total, minimum, and maximum aggregates of the associated measurement value. The default value for the count is 0, the default value for the total is 0.0, the default minimum value is MetricRecord::k_DEFAULT_MIN, and the default maximum value is MetricRecord::k_DEFAULT_MAX.
Synopsis
Declared in <balm_collector.h>
class Collector;
Member Functions
Name |
Description |
|
Create a collector for a metric having the specified |
|
Destroy this object. |
Increment the event count by the specified |
|
Load into the specified |
|
Load into the specified |
|
Return a reference to the non‐modifiable |
|
Reset the count, total, minimum, and maximum values of the metric being collected to their default states. After this operation, the count and total values will be 0, the minimum value will be |
|
Set the event count to the specified |
|
Increment the event count by 1, add the specified |
Created with MrDocs