# InsightsMetric

- [JSON representation](https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/InsightsMetric#SCHEMA_REPRESENTATION)

The metric and its aggregation function.

| JSON representation |
|---|
| ``` { "metric": string, "aggregation": enum (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/AggregationFunction`) } ``` |

| Fields ||
|---|---|
| `metric` | `string` Required. Name of the metric. |
| `aggregation` | ``enum (`https://docs.cloud.google.com/apigee/docs/reference/apis/apihub/rest/v1/AggregationFunction`)`` Required. Aggregation function associated with the metric. |