- [JSON representation](https://developers.google.com/health/reference/rest/v4beta/TimeInHeartRateZoneRollupValue#SCHEMA_REPRESENTATION)
- [TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue](https://developers.google.com/health/reference/rest/v4beta/TimeInHeartRateZoneRollupValue#TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue)
  - [JSON representation](https://developers.google.com/health/reference/rest/v4beta/TimeInHeartRateZoneRollupValue#TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.SCHEMA_REPRESENTATION)

Represents the result of the rollup of the time in heart rate zone data type.

| JSON representation |
|---|
| ``` { "timeInHeartRateZones": [ { object (`https://developers.google.com/health/reference/rest/v4beta/TimeInHeartRateZoneRollupValue#TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue`) } ] } ``` |

| Fields ||
|---|---|
| `timeInHeartRateZones[]` | ``object (`https://developers.google.com/health/reference/rest/v4beta/TimeInHeartRateZoneRollupValue#TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue`)`` List of time spent in each heart rate zone. |

## TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue

Represents the total time spent in a specific heart rate zone.

| JSON representation |
|---|
| ``` { "heartRateZone": enum (`https://developers.google.com/health/reference/rest/v4beta/users.dataTypes.dataPoints#HeartRateZoneType`), "duration": string } ``` |

| Fields ||
|---|---|
| `heartRateZone` | ``enum (`https://developers.google.com/health/reference/rest/v4beta/users.dataTypes.dataPoints#HeartRateZoneType`)`` The heart rate zone. |
| `duration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` The total time spent in the specified heart rate zone. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |