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

Represents the result of the rollup of the activity level data type.

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

| Fields ||
|---|---|
| `activityLevelRollupsByActivityLevelType[]` | ``object (`https://developers.google.com/health/reference/rest/v4beta/ActivityLevelRollupValue#ActivityLevelRollupValue.ActivityLevelRollupByActivityLevelType`)`` List of total durations in each activity level type. |

## ActivityLevelRollupValue.ActivityLevelRollupByActivityLevelType

Represents the total duration in a specific activity level type.

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

| Fields ||
|---|---|
| `activityLevelType` | ``enum (`https://developers.google.com/health/reference/rest/v4beta/users.dataTypes.dataPoints#ActivityLevel.ActivityLevelType`)`` Activity level type. |
| `totalDuration` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` Total duration in the activity level type. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |