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_UNSPECIFIEDUnspecified Aggregation function.
AVGAverage.
SUMSummation.
MINMin.
MAXMax.
COUNT_DISTINCTCount distinct

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.