Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SleepSummary

import type { SleepSummary } from "https://googleapis.deno.dev/v1/health:v4.ts";

Sleep summary: metrics and stages summary.

interface SleepSummary {
readonly minutesAfterWakeUp?: bigint;
readonly minutesAsleep?: bigint;
readonly minutesAwake?: bigint;
readonly minutesInSleepPeriod?: bigint;
readonly minutesToFallAsleep?: bigint;
readonly stagesSummary?: StageSummary[];
}

§Properties

§
readonly minutesAfterWakeUp?: bigint
[src]

Output only. Minutes after wake up calculated by restlessness algorithm.

§
readonly minutesAsleep?: bigint
[src]

Output only. Total number of minutes asleep. For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages (excluding AWAKE).

§
readonly minutesAwake?: bigint
[src]

Output only. Total number of minutes awake. It is a sum of all AWAKE stages.

§
readonly minutesInSleepPeriod?: bigint
[src]

Output only. Delta between wake time and bedtime. It is the sum of all stages.

§
readonly minutesToFallAsleep?: bigint
[src]

Output only. Minutes to fall asleep calculated by restlessness algorithm.

§
readonly stagesSummary?: StageSummary[]
[src]

Output only. List of summaries (total duration and segment count) per each sleep stage type.