Class Sleep
A sleep session possibly including stages.
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class Sleep : IMessage<Sleep>, IEquatable<Sleep>, IDeepCloneable<Sleep>, IBufferMessage, IMessage
Constructors
Sleep()
Declaration
public Sleep()
Sleep(Sleep)
Declaration
public Sleep(Sleep other)
Parameters
| Type | Name | Description |
|---|---|---|
| Sleep | other |
Properties
CreateTime
Output only. Creation time of this sleep observation.
Declaration
public Timestamp CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |
Interval
Required. Observed sleep interval.
Declaration
public SessionTimeInterval Interval { get; set; }
Property Value
| Type | Description |
|---|---|
| SessionTimeInterval |
Metadata
Optional. Sleep metadata: processing, main, manually edited, stages status.
Declaration
public Sleep.Types.SleepMetadata Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| Sleep.Types.SleepMetadata |
OutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
Declaration
public RepeatedField<Sleep.Types.OutOfBedSegment> OutOfBedSegments { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Sleep.Types.OutOfBedSegment> |
Stages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
Declaration
public RepeatedField<Sleep.Types.SleepStage> Stages { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<Sleep.Types.SleepStage> |
Summary
Output only. Sleep summary: metrics and stages summary.
Declaration
public Sleep.Types.SleepSummary Summary { get; set; }
Property Value
| Type | Description |
|---|---|
| Sleep.Types.SleepSummary |
Type
Optional. SleepType: classic or stages.
Declaration
public Sleep.Types.SleepType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| Sleep.Types.SleepType |
UpdateTime
Output only. Last update time of this sleep observation.
Declaration
public Timestamp UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Timestamp |