MetricAggregation Stay organized with collections Save and categorize content based on your preferences.
The optionally aggregated metric to query with its ordering.
| JSON representation |
|---|
{"name":string,"aggregation":enum ( |
| Fields | |
|---|---|
name |
Name of the metric |
aggregation |
Aggregation function associated with the metric. |
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 |
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.