MetricAggregation

The optionally aggregated metric to query with its ordering.

JSON representation
{
  "name": string,
  "aggregation": enum (AggregationFunction),
  "order": enum (Order)
}
Fields
name

string

Name of the metric

aggregation

enum (AggregationFunction)

Aggregation function associated with the metric.

order

enum (Order)

Ordering for this aggregation in the result. For time series this is ignored since the ordering of points depends only on the timestamp, not the values.

AggregationFunction

Aggregation functions to be invoked on a given metric.

Enums
AGGREGATION_FUNCTION_UNSPECIFIED Unspecified Aggregation function.
AVG Average.
SUM Summation.
MIN Min.
MAX Max.
COUNT_DISTINCT Count distinct