# MetricValue

- [JSON representation](https://developers.google.com/my-business/reference/rest/v4/MetricValue#SCHEMA_REPRESENTATION)
- [DimensionalMetricValue](https://developers.google.com/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue)
  - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue.SCHEMA_REPRESENTATION)
- [TimeDimension](https://developers.google.com/my-business/reference/rest/v4/MetricValue#TimeDimension)
  - [JSON representation](https://developers.google.com/my-business/reference/rest/v4/MetricValue#TimeDimension.SCHEMA_REPRESENTATION)

A value for a single Metric from a starting time.

| JSON representation ||
|---|---|
| ``` { "metric": enum (`https://developers.google.com/my-business/reference/rest/v4/Metric`), "totalValue": { object (`https://developers.google.com/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue`) }, "dimensionalValues": [ { object (`https://developers.google.com/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue`) } ] } ``` |

| Fields ||
|---|---|
| `metric` | ``enum (`https://developers.google.com/my-business/reference/rest/v4/Metric`)`` The metric for which the value applies. |
| `totalValue` | ``object (`https://developers.google.com/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue`)`` The total aggregated value for this metric. Set for the AGGREGATED_TOTAL option. |
| `dimensionalValues[]` | ``object (`https://developers.google.com/my-business/reference/rest/v4/MetricValue#DimensionalMetricValue`)`` Dimensional values for this metric. |

## DimensionalMetricValue

A value for a single metric with a given time dimension.

| JSON representation ||
|---|---|
| ``` { "metricOption": enum (`https://developers.google.com/my-business/reference/rest/v4/MetricOption`), "timeDimension": { object (`https://developers.google.com/my-business/reference/rest/v4/MetricValue#TimeDimension`) }, "value": string } ``` |

| Fields ||
|---|---|
| `metricOption` | ``enum (`https://developers.google.com/my-business/reference/rest/v4/MetricOption`)`` The option that requested this dimensional value. |
| `timeDimension` | ``object (`https://developers.google.com/my-business/reference/rest/v4/MetricValue#TimeDimension`)`` The dimension for the value. |
| `value` | `string (https://developers.google.com/discovery/v1/type-format format)` The value. If no value is set, then the requested data is missing. |

## TimeDimension

The dimension for which data is divided over.

| JSON representation ||
|---|---|
| ``` { "dayOfWeek": enum (`https://developers.google.com/my-business/reference/rest/v4/accounts.locations#Location.DayOfWeek`), "timeOfDay": { object (`https://developers.google.com/my-business/reference/rest/v4/accounts.locations.localPosts#TimeOfDay`) }, "timeRange": { object (`https://developers.google.com/my-business/reference/rest/v4/TimeRange`) } } ``` |

| Fields ||
|---|---|
| `dayOfWeek` | ``enum (`https://developers.google.com/my-business/reference/rest/v4/accounts.locations#Location.DayOfWeek`)`` The day of the week ("MONDAY" to "SUNDAY") this value corresponds to. Set for BREAKDOWN_DAY_OF_WEEK option. |
| `timeOfDay` | ``object (`https://developers.google.com/my-business/reference/rest/v4/accounts.locations.localPosts#TimeOfDay`)`` The hour of the day (0 to 23) this value corresponds to. Set for BREAKDOWN_HOUR_OF_DAY option. |
| `timeRange` | ``object (`https://developers.google.com/my-business/reference/rest/v4/TimeRange`)`` The range of time this value covers. Set for AGGREGATED_TOTAL and AGGREGATED_DAILY options. |