Exercise
import type { Exercise } from "https://googleapis.deno.dev/v1/health:v4.ts";An exercise that stores information about a physical activity.
interface Exercise {
activeDuration?: number;
readonly createTime?: Date;
displayName?: string;
exerciseEvents?: ExerciseEvent[];
exerciseMetadata?: ExerciseMetadata;
exerciseType?:
| "EXERCISE_TYPE_UNSPECIFIED"
| "RUNNING"
| "WALKING"
| "BIKING"
| "SWIMMING"
| "HIKING"
| "YOGA"
| "PILATES"
| "WORKOUT"
| "HIIT"
| "WEIGHTLIFTING"
| "STRENGTH_TRAINING"
| "OTHER";
interval?: SessionTimeInterval;
metricsSummary?: MetricsSummary;
notes?: string;
splits?: SplitSummary[];
splitSummaries?: SplitSummary[];
readonly updateTime?: Date;
}§Properties
§
exerciseEvents?: ExerciseEvent[]
[src]Optional. Exercise events that happen during an exercise, such as pause & restarts.
§
exerciseMetadata?: ExerciseMetadata
[src]Optional. Additional exercise metadata.
§
exerciseType?: "EXERCISE_TYPE_UNSPECIFIED" | "RUNNING" | "WALKING" | "BIKING" | "SWIMMING" | "HIKING" | "YOGA" | "PILATES" | "WORKOUT" | "HIIT" | "WEIGHTLIFTING" | "STRENGTH_TRAINING" | "OTHER"
[src]Required. The type of activity performed during an exercise.
§
interval?: SessionTimeInterval
[src]Required. Observed exercise interval
§
metricsSummary?: MetricsSummary
[src]Required. Summary metrics for this exercise ( )
§
splits?: SplitSummary[]
[src]Optional. The default split is 1 km or 1 mile. - if the movement distance is less than the default, then there are no splits - if the movement distance is greater than or equal to the default, then we have splits
§
splitSummaries?: SplitSummary[]
[src]Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.