Struct AggregatedMetricData

Struct Documentation

struct Microsoft::Applications::Events::AggregatedMetricData

The AggregatedMetricData structure contains the data of a precomputed aggregated metrics event.

Public Functions

inline AggregatedMetricData(std::string const &aggrName, long aggrDuration, long aggrCount)

An AggregatedMetricData constructor that takes a string that contains the name of the aggregated metric, a long that contains the duration of the aggregation, and a long that contains the count of the number of occurrences.

Parameters
  • aggrName – Name of the aggregated metric

  • aggrDuration – Duration of the aggregation

  • aggrCount – Number of occurrences

Public Members

std::string name

[Required] The name of the precomputed aggregated metric.

long duration

[Required] The duration (length of time in microseconds) that this aggregated metric spans.

long count

[Required] The total count of metric observations aggregated in the duration.

std::string units

[Optional] A string representing the units of measure of the aggregated metric.

std::string instanceName

[Optional] An instance name for the aggregated metric.

std::string objectClass

m [Optional] A string that contains the object class upon which the aggregated metric is measured.

std::string objectId

[Optional] A string that contains the object ID upon which the Aggregated Metric is measured.

std::map<AggregateType, double> aggregates

[Optional] The reported aggregated metrics.

The types of aggregates are specified by the ::AggregateType enumeration.

std::map<long, long> buckets

[Optional] A standard map that contains a frequency table, which is an alternative way to summarize the observations (like a time series).