Class Sleep
A sleep session possibly including stages.
Implements
Inherited Members
Namespace: Google.Apis.GoogleHealthAPI.v4.Data
Assembly: Google.Apis.GoogleHealthAPI.v4.dll
Syntax
public class Sleep : IDirectResponseSchema
Properties
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
CreateTimeRaw
Output only. Creation time of this sleep observation.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Interval
Required. Observed sleep interval.
Declaration
[JsonProperty("interval")]
public virtual SessionTimeInterval Interval { get; set; }
Property Value
| Type | Description |
|---|---|
| SessionTimeInterval |
Metadata
Optional. Sleep metadata: processing, main, manually edited, stages status.
Declaration
[JsonProperty("metadata")]
public virtual SleepMetadata Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| SleepMetadata |
OutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
Declaration
[JsonProperty("outOfBedSegments")]
public virtual IList<OutOfBedSegment> OutOfBedSegments { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<OutOfBedSegment> |
Stages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
Declaration
[JsonProperty("stages")]
public virtual IList<SleepStage> Stages { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<SleepStage> |
Summary
Output only. Sleep summary: metrics and stages summary.
Declaration
[JsonProperty("summary")]
public virtual SleepSummary Summary { get; set; }
Property Value
| Type | Description |
|---|---|
| SleepSummary |
Type
Optional. SleepType: classic or stages.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
UpdateTimeRaw
Output only. Last update time of this sleep observation.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
| Type | Description |
|---|---|
| string |