SleepSession

A sleep session is a detailed record of sleep data during which a user has fallen asleep and remained asleep without waking up.

The SleepType data has a SESSIONS that consists of one of more SleepSession.

Data Specification

SleepSession consists of the following properties.

PropertyDescription
startTime[Mandatory]
The timestamp representing the bedtime in this sleep session, specified as Instant, in milliseconds.
endTime[Mandatory]
The timestamp representing the wake-up time in this sleep session, specified as Instant, in milliseconds.
duration[Mandatory]
The duration of the sleep session, specified as Duration, in minutes. It indicates the time from bedtime to wake-up time within this session.
stagesThe list of sleep stages recorded during this sleep session.

Since

1.0.0

See also

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The sleep stage during a specific time.

Properties

Link copied to clipboard

The duration of the sleep session, specified as Duration, in minutes. It indicates the time from bedtime to wake-up time within this session.

Link copied to clipboard

The timestamp representing the wake-up time in this sleep session, specified as Instant, in milliseconds.

Link copied to clipboard

The list of sleep stages recorded during this sleep session.

Link copied to clipboard

The timestamp representing the bedtime in this sleep session, specified as Instant, in milliseconds.

Preferences Submitted

You have successfully updated your cookie preferences.