Class MetricsRequest
Defined in File metrics-request.h
Class Documentation
-
class MetricsRequest
Public Types
-
typedef std::shared_ptr<MetricsRequest> Ptr
Public Functions
-
MetricsRequest(uint32_t groupIndex, metrics::IMetricGroup const *group, CollectionRange const *ranges, uint64_t nRanges, bool freqOverrideEnabled = false, float freqOverrideVal = 1.0f)
Note
Ranges must be sorted in increasing order, and non-overlapping; failure to comply will result in undefined behavior
-
~MetricsRequest()
-
uint32_t GroupIndex() const
-
metrics::IMetricGroup const *Group() const
-
CollectionRange const *CollectionRanges() const
-
uint64_t CollectionRangeCount() const
-
uint64_t GetRequestMetricCount() const
-
bool IsFrequencyOverrideEnabled() const
-
float GetFrequencyOverrideValue() const
-
void AddRequestMetric(metrics::MetricId metricId, bool insertAtStart = false)
Adds the specified metric to list of metrics associated with the request.
- Parameters
metricId -- [in] Composite metric index to be added to the request.
insertAtStart -- [in] Boolean that if true will insert the metric index at the start of the list of metrics currently requested. Otherwise, the metric index will be appended to its end.
-
typedef std::shared_ptr<MetricsRequest> Ptr