This class provides an in‐core value‐semantic representation of a sample of metric values. The class contains a collection of addresses to (external) MetricRecord objects holding the values for their respective metrics (aggregated over some period of time). The metric records contained by a sample are broken into a series of groups, which are represented by MetricSampleGroup objects. Each group contains a sequence of records and an elapsed time value, indicating the period of time over which those records were taken. This class also provides a timestamp value, used to indicate when the sample was collected. The class provides a method, appendGroups, that appends a group of metric records to the sample. Arrays supplied using appendGroups must be valid for the productive lifetime of the MetricSample object or until they are removed by calling removeAllRecords.
Synopsis
Declared in <balm_metricsample.h>
class MetricSample;
Type Aliases
Name |
Description |
A |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this metric sample. |
Assign to this sample the value of the specified |
|
|
|
Return an iterator positioned at the beginning of the sequence of |
|
Return an iterator positioned one one past the final |
|
Return the number of record groups (i.e., |
|
Return the total number of records in this sample (i.e., the sum of the lengths of all the appended record groups). |
|
Format this object to the specified output |
|
Remove all metric records from this sample. |
|
Return a reference to the non‐modifiable |
|
Set the timestamp (used to indicate when the sample was taken) to the specified |
|
Return a reference to the non‐modifiable timestamp for this sample. |
|
|
Declare that this type uses a |
Friends
Name |
Description |
Return |
Non-Member Functions
Name |
Description |
Return |
Created with MrDocs