# Metric

- [JSON representation](https://docs.cloud.google.com/generative-ai-app-builder/docs/reference/rest/Shared.Types/Metric#SCHEMA_REPRESENTATION)

A specific metric, identified by specifying values for all of the labels of a `` `MetricDescriptor` ``.

| JSON representation |
|---|
| ``` { "type": string, "labels": { string: string, ... } } ``` |

| Fields ||
|---|---|
| `type` | `string` An existing metric type, see `google.api.MetricDescriptor`. For example, `custom.googleapis.com/invoice/paid/amount`. |
| `labels` | `map (key: string, value: string)` The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values. |