Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.8.5 #355

Merged
merged 62 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
01afecd
Add initial Oura activity, sleep, readiness schemas
mpgxvii Jun 1, 2023
8a5ce9d
Add Oura workout schema
mpgxvii Jun 2, 2023
15262f0
Fix Oura schemas, flatten fields
mpgxvii Jun 9, 2023
be21a9a
Fix Oura schema docs
mpgxvii Jun 9, 2023
28bae4e
Merge branch 'master' of https://github.com/RADAR-base/RADAR-Schemas …
mpgxvii Jun 9, 2023
2a3887d
Fix schema formatting
mpgxvii Jun 9, 2023
b1c5668
Add rest of Oura schemas
mpgxvii Jun 13, 2023
3f22226
Fix Oura personal info schema
mpgxvii Jun 13, 2023
bddb724
Fix Oura schema number types
mpgxvii Jun 13, 2023
7c7b0b9
Merge branch 'dev' into oura-schemas
mpgxvii Jun 13, 2023
b3a441e
Update Oura schemas
mpgxvii Jun 21, 2023
35145f4
Merge branch 'oura-schemas' of https://github.com/RADAR-base/RADAR-Sc…
mpgxvii Jun 21, 2023
7d2da62
Merge branch 'dev' of https://github.com/RADAR-base/RADAR-Schemas int…
mpgxvii Jun 21, 2023
13f920f
Add Oura connector specifications
mpgxvii Jun 21, 2023
c98a292
Fix Oura motion count and tag specs
mpgxvii Jun 21, 2023
049430c
snapshot version
yatharthranjan Jun 30, 2023
edfdf63
Merge pull request #343 from RADAR-base/release-0.8.4
yatharthranjan Jun 30, 2023
f44dff3
Added schema for Activity Transition event
this-Aditya Jul 6, 2023
7e27ae4
Added new specification for google-activity-recognition
this-Aditya Jul 6, 2023
c9324e5
renamed model and specification file
this-Aditya Jul 6, 2023
ab399a4
Merge branch 'dev' into google-activity
mpgxvii Jul 19, 2023
fd07e4a
Merge pull request #344 from this-Aditya/google-activity
mpgxvii Jul 19, 2023
dc8e102
removed unsupported activity types from activity transition event
this-Aditya Jul 20, 2023
817c228
Merge pull request #346 from this-Aditya/activity-update
mpgxvii Jul 21, 2023
738a74f
Update default ActivityType to null
this-Aditya Jul 26, 2023
352c43f
Updated sleep segement status default value as null
this-Aditya Jul 29, 2023
1651353
Added new events for phone-usage-event
this-Aditya Jul 29, 2023
191cdfe
Merge pull request #347 from this-Aditya/activity-null
yatharthranjan Jul 31, 2023
55d6a2f
Merge branch 'dev' into sleep-null
mpgxvii Jul 31, 2023
a0018bf
Merge pull request #348 from this-Aditya/sleep-null
mpgxvii Jul 31, 2023
f9a4eaf
Merge branch 'dev' into new-usage-events
mpgxvii Aug 1, 2023
cdc42b0
Merge pull request #349 from this-Aditya/new-usage-events
mpgxvii Aug 1, 2023
be5fdd2
Added specifications for Google Places API data
this-Aditya Aug 2, 2023
f2dbb34
Added schema for data retrieved from Google Places API
this-Aditya Aug 2, 2023
c65688f
Added new field to detect broadcasts
this-Aditya Aug 2, 2023
29d284a
Merge branch 'dev' into oura-schemas
mpgxvii Aug 7, 2023
0d0d00c
Updated default value for PlacesTypes and modified doc for place-ID
this-Aditya Aug 16, 2023
c0aad16
Updated sample rate to dynamic also
this-Aditya Aug 16, 2023
db62a0b
Removed UNKNOWN and some unavailable types from PlacesTypes enum
this-Aditya Aug 17, 2023
05ee070
Fix typo
mpgxvii Aug 18, 2023
3b1e99e
Fix missing properties and incorrect types
mpgxvii Aug 18, 2023
a5a67fc
Merge branch 'oura-schemas' of https://github.com/RADAR-base/RADAR-Sc…
mpgxvii Aug 18, 2023
cfcb243
Modified the Places Types from an array to enums.
this-Aditya Aug 21, 2023
ff11b11
Add ids to Oura subtypes
mpgxvii Aug 22, 2023
c6e89bc
Fix sleep and activity schemas
mpgxvii Aug 22, 2023
20268b5
Add activity and sleep classification schemas
mpgxvii Aug 22, 2023
1a5cf9f
Update Oura specification
mpgxvii Aug 22, 2023
a135455
Added additional type for PlacesTypes
this-Aditya Aug 23, 2023
e4e8194
Fix OurActivityClass since 'class' is a keyword
mpgxvii Aug 24, 2023
f22982c
Add Oura spo2 schema
mpgxvii Sep 12, 2023
a72d48a
Fix spo2 schema
mpgxvii Sep 12, 2023
a471766
Add updated Oura schemas from latest version of API
mpgxvii Sep 14, 2023
8154fb5
Merge pull request #352 from this-Aditya/google-places
blootsvoets Sep 18, 2023
8c5e795
Merge branch 'dev' into oura-schemas
mpgxvii Sep 20, 2023
e704929
Fix Oura recommended sleep schema docs
mpgxvii Sep 21, 2023
d5eccdd
Merge branch 'oura-schemas' of https://github.com/RADAR-base/RADAR-Sc…
mpgxvii Sep 21, 2023
a11dc00
Rename schemas and update docs
mpgxvii Oct 6, 2023
4a68c32
Update docs
mpgxvii Oct 6, 2023
5c980ee
Update Oura specs
mpgxvii Oct 6, 2023
39cc950
Merge pull request #338 from RADAR-base/oura-schemas
mpgxvii Oct 10, 2023
23c755d
Merge branch 'master' into release-0.8.5
mpgxvii Oct 10, 2023
fb3ad79
Bump version
mpgxvii Oct 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions commons/connector/oura/oura_activity_class.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraActivityClass",
"type": "record",
"doc": "Oura Activity class in 5-minute intervals as defined in https://cloud.ouraring.com/v2/docs#operation/Single_daily_activity_Document_v2_usercollection_daily_activity__document_id__get.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the Oura activity record the activity class data is taken from.", "default": null},
{"name": "type", "type":
{"name": "OuraActivityClassType", "type": "enum", "symbols": ["NON_WEAR", "REST", "INACTIVE", "LOW_ACTIVITY", "MEDIUM_ACTIVITY", "HIGH_ACTIVITY", "UNKNOWN"], "doc": "Activity class type as computed by Oura."},
"doc": "Activity classification at a 5-minute interval. UNKNOWN when this data is not provided.", "default": "UNKNOWN" }
]
}
38 changes: 38 additions & 0 deletions commons/connector/oura/oura_daily_activity.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraDailyActivity",
"type": "record",
"doc": "The Daily Activity scope includes daily activity summary values and detailed activity levels. Activity levels are expressed in metabolic equivalent of task minutes (MET mins). Oura tracks activity based on the movement.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the activity from Oura.", "default": null},
{"name": "score", "type": ["null", "int"], "doc": "Activity score in range [1, 100]. Null if unknown.", "default": null},
{"name": "activeCalories", "type": ["null", "int"], "doc": "Active calories expended (in kilocalories). Null if unknown.", "default": null},
{"name": "averageMetMinutes", "type": ["null", "float"], "doc": "Average metabolic equivalent (MET) in minutes. Null if unknown.", "default": null},
{"name": "contributorMeetDailyTargets", "type": ["null", "int"], "doc": "Contribution of meeting previous 7-day daily activity targets in range [1, 100] to the activity score. Null if unknown.", "default": null},
{"name": "contributorMoveEveryHour", "type": ["null", "int"], "doc": "Contribution of previous 24-hour inactivity alerts in range [1, 100] to the activity score. Null if unknown.", "default": null},
{"name": "contributorRecoveryTime", "type": ["null", "int"], "doc": "Contribution of previous 7-day recovery time in range [1, 100] to the activity score. Null if unknown.", "default": null},
{"name": "contributorStayActive", "type": ["null", "int"], "doc": "Contribution of previous 24-hour activity in range [1, 100] to the activity score. Null if unknown.", "default": null},
{"name": "contributorTrainingFrequency", "type": ["null", "int"], "doc": "Contribution of previous 7-day exercise frequency in range [1, 100] to the activity score. Null if unknown.", "default": null},
{"name": "contributorTrainingVolume", "type": ["null", "int"], "doc": "Contribution of previous 7-day exercise volume in range [1, 100] to the activity score. Null if unknown.", "default": null},
{"name": "equivalentWalkingDistance", "type": ["null", "int"], "doc": "Equivalent walking distance (in meters) of energy expenditure. Null if unknown.", "default": null},
{"name": "highActivityMetMinutes", "type": ["null", "int"], "doc": "High activity metabolic equivalent (MET) in minutes. Null if unknown.", "default": null},
{"name": "highActivityTime", "type": ["null", "int"], "doc": "High activity metabolic equivalent (MET) in seconds. Null if unknown.", "default": null},
{"name": "inactivityAlerts", "type": ["null", "int"], "doc": "Number of inactivity alerts received. Null if unknown.", "default": null},
{"name": "lowActivityMetMinutes", "type": ["null", "int"], "doc": "Low activity metabolic equivalent (MET) in minutes. Null if unknown.", "default": null},
{"name": "lowActivityTime", "type": ["null", "int"], "doc": "Low activity metabolic equivalent (MET) in seconds. Null if unknown.", "default": null},
{"name": "mediumActivityMetMinutes", "type": ["null", "int"], "doc": "Medium activity metabolic equivalent (MET) in minutes. Null if unknown.", "default": null},
{"name": "mediumActivityTime", "type": ["null", "int"], "doc": "Medium activity metabolic equivalent (MET) in seconds. Null if unknown.", "default": null},
{"name": "metersToTarget", "type": ["null", "int"], "doc": "Remaining meters to target. Null if unknown.", "default": null},
{"name": "nonWearTime", "type": ["null", "int"], "doc": "The time (in seconds) in which the ring was not worn. Null if unknown.", "default": null},
{"name": "restingTime", "type": ["null", "int"], "doc": "Resting time (in seconds). Null if unknown.", "default": null},
{"name": "sedentaryMetMinutes", "type": ["null", "int"], "doc": "Sedentary metabolic equivalent (MET) in minutes. Null if unknown.", "default": null},
{"name": "sedentaryTime", "type": ["null", "int"], "doc": "Sedentary metabolic equivalent (MET) in seconds. Null if unknown.", "default": null},
{"name": "steps", "type": ["null", "int"], "doc": "Total number of steps taken. Null if unknown.", "default": null},
{"name": "targetCalories", "type": ["null", "int"], "doc": "Daily activity target (in kilocalories). Null if unknown.", "default": null},
{"name": "targetMeters", "type": ["null", "int"], "doc": "Daily activity target (in meters). Null if unknown.", "default": null},
{"name": "totalCalories", "type": ["null", "int"], "doc": "Total calories expended (in kilocalories). Null if unknown.", "default": null},
{"name": "day", "type": ["null", "string"], "doc": "The YYYY-MM-DD formatted local date indicating when the daily activity occurred. Null if unknown.", "default": null}
]
}
23 changes: 23 additions & 0 deletions commons/connector/oura/oura_daily_readiness.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraDailyReadiness",
"type": "record",
"doc": "This includes the daily readiness summary values. Readiness tells how ready you are for the day.",
"fields": [
{"name": "time", "type": "double", "doc": "Time the daily readiness record belongs to in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the readiness data from Oura.", "default": null},
{"name": "contributorActivityBalance", "type": ["null", "int"], "doc": "Contribution of cumulative activity balance in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "contributorBodyTemperature", "type": ["null", "int"], "doc": "Contribution of body temperature in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "contributorHrvBalance", "type": ["null", "int"], "doc": "Contribution of heart rate variability balance in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "contributorPreviousDayActivity", "type": ["null", "int"], "doc": "Contribution of previous day's activity in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "contributorPreviousNight", "type": ["null", "int"], "doc": "Contribution of previous night's sleep in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "contributorRecoveryIndex", "type": ["null", "int"], "doc": "Contribution of previous 7-day exercise volume in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "contributorRestingHeartRate", "type": ["null", "int"], "doc": "Contribution of resting heart rate in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "contributorSleepBalance", "type": ["null", "int"], "doc": "Contribution of sleep balance in range [1, 100] to the readiness score. Null if unknown.", "default": null},
{"name": "day", "type": ["null", "string"], "doc": "Day that the daily readiness belongs to. Null if unknown.", "default": null},
{"name": "score", "type": ["null", "int"], "doc": "Daily readiness score in range [1, 100]. Null if unknown.", "default": null},
{"name": "temperatureDeviation", "type": ["null", "float"], "doc": "Temperature deviation in degrees Celsius. Null if unknown.", "default": null},
{"name": "temperatureTrendDeviation", "type": ["null", "float"], "doc": "Temperature trend deviation in degrees Celsius. Null if unknown.", "default": null}
]
}
20 changes: 20 additions & 0 deletions commons/connector/oura/oura_daily_sleep.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraDailySleep",
"type": "record",
"doc": "This includes the daily sleep summary values. Sleep period is a nearly continuous, longish period of time spent lying down in bed.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the sleep in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the sleep data from Oura.", "default": null},
{"name": "contributorDeepSleep", "type": ["null", "int"], "doc": "Contribution of deep sleep in range [1, 100] to the sleep score. Null if unknown.", "default": null},
{"name": "contributorEfficiency", "type": ["null", "int"], "doc": "Contribution of sleep efficiency in range [1, 100] to the sleep score. Null if unknown.", "default": null},
{"name": "contributorLatency", "type": ["null", "int"], "doc": "Contribution of sleep latency in range [1, 100] to the sleep score. Null if unknown.", "default": null},
{"name": "contributorRemSleep", "type": ["null", "int"], "doc": "Contribution of REM sleep in range [1, 100] to the sleep score. Null if unknown.", "default": null},
{"name": "contributorRestfulness", "type": ["null", "int"], "doc": "Contribution of sleep restfulness in range [1, 100] to the sleep score. Null if unknown.", "default": null},
{"name": "contributorTiming", "type": ["null", "int"], "doc": "Contribution of sleep timing in range [1, 100] to the sleep score. Null if unknown.", "default": null},
{"name": "contributorTotalSleep", "type": ["null", "int"], "doc": "Contribution of total sleep in range [1, 100] to the sleep score. Null if unknown.", "default": null},
{"name": "day", "type": ["null", "string"], "doc": "Day that the daily sleep belongs to. Null if unknown.", "default": null},
{"name": "score", "type": ["null", "int"], "doc": "Daily sleep score in range [1, 100]. Null if unknown.", "default": null}
]
}
13 changes: 13 additions & 0 deletions commons/connector/oura/oura_daily_spo2.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraDailySpo2",
"type": "record",
"doc": "This includes the daily blood oxygen saturation (spO2) average. Data only available for Gen 3 rings.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the sleep in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the spO2 data from Oura.", "default": null},
{"name": "spo2AveragePercentage", "type": ["null", "float"], "doc": "The average oxygen saturation percentage value over a single day.", "default": null},
{"name": "day", "type": ["null", "string"], "doc": "Day that the daily oxygen saturation data belongs to. Null if unknown.", "default": null}
]
}
15 changes: 15 additions & 0 deletions commons/connector/oura/oura_heart_rate.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraHeartRate",
"type": "record",
"doc": "The Heart Rate data scope includes time-series heart rate data throughout the day and night. Heart rate is provided at 5-minute increments.",
"fields": [
{"name": "time", "type": "double", "doc": "Timestamp of the heart rate in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the Oura session or sleep record the heart rate data is taken from.", "default": null},
{"name": "bpm", "type": ["null", "int"], "doc": "Heart rate in beats per minute.", "default": null},
{"name": "source", "type":
{"name": "OuraHeartRateSource", "type": "enum", "symbols": ["AWAKE", "REST", "SLEEP", "SESSION", "LIVE", "WORKOUT", "UNKNOWN"], "doc": "Heart rate source type as computed by Oura."},
"doc": "Heart rate source type as computed by Oura. UNKNOWN when this data is not provided (e.g. samples from sleep API).", "default": "UNKNOWN" }
]
}
12 changes: 12 additions & 0 deletions commons/connector/oura/oura_heart_rate_variability.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraHeartRateVariability",
"type": "record",
"doc": "This describes the heart rate variability provided by the Oura Ring.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the hrv in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the Oura session or sleep record the hrv data is taken from.", "default": null},
{"name": "hrv", "type": ["null", "float"], "doc": "The HRV value in milliseconds.", "default": null}
]
}
12 changes: 12 additions & 0 deletions commons/connector/oura/oura_met.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraMet",
"type": "record",
"doc": "This describes the metabolic equivalent data (MET) during an activity. MET is a common measure used to express the energy expenditure and intensity of different physical activities.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the activity in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the Oura activity record the met data is taken from.", "default": null},
{"name": "met", "type": ["null", "float"], "doc": "Activity metabolic equivalent (MET) in seconds.", "default": null}
]
}
12 changes: 12 additions & 0 deletions commons/connector/oura/oura_motion_count.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraMotionCount",
"type": "record",
"doc": "This describes motion count during a session.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the session in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the Oura session the motion count data is taken from.", "default": null},
{"name": "motionCount", "type": ["null", "int"], "doc": "Motion count during a session.", "default": null}
]
}
16 changes: 16 additions & 0 deletions commons/connector/oura/oura_personal_info.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraPersonalInfo",
"type": "record",
"doc": "This describes personal information (e.g. age, email, weight, and height) about the user. You can access the id on the personal_info route with any access token (no scopes are required).",
"fields": [
{"name": "time", "type": "double", "doc": "Timestamp of the record."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "ID of the record.", "default": null},
{"name": "age", "type": ["null", "int"], "doc": "Age of the user.", "default": null},
{"name": "weight", "type": ["null", "float"], "doc": "Weight of the user.", "default": null},
{"name": "height", "type": ["null", "float"], "doc": "Height of the user.", "default": null},
{"name": "biologicalSex", "type": ["null", "string"], "doc": "Biological sex of the user.", "default": null},
{"name": "email", "type": ["null", "string"], "doc": "Email of the user.", "default": null}
]
}
21 changes: 21 additions & 0 deletions commons/connector/oura/oura_recommended_sleep_time.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraRecommendedSleepTime",
"type": "record",
"doc": "Oura recommendations for the optimal bedtime window that is calculated based on sleep data.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the recomended sleep time period in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the Oura sleep time recommendation.", "default": null},
{"name": "day", "type": ["null", "string"], "doc": "Day that the sleep recommendation record belongs to. Null if unknown.", "default": null},
{"name": "optimalBedtimeStartOffset", "type": ["null", "int"], "doc": "Recommended optimal bedtime start offset from midnight. Null if unknown.", "default": null},
{"name": "optimalBedtimeEndOffset", "type": ["null", "int"], "doc": "Recommended optimal bedtime end offset from midnight. Null if unknown.", "default": null},
{"name": "optimalBedtimeTimezoneOffset", "type": ["null", "int"], "doc": "Timezone offset in second from GMT of the day. Null if unknown.", "default": null},
{"name": "recommendation", "type":
{"name": "OuraSleepRecommendation", "type": "enum", "symbols": ["IMPROVE_EFFICIENCY", "EARLIER_BEDTIME", "LATER_BEDTIME", "EARLIER_WAKE_UP_TIME", "LATER_WAKE_UP_TIME", "FOLLOW_OPTIMAL_BEDTIME", "UNKNOWN"], "doc": "Sleep phase type as computed by Oura."},
"doc": "Oura recommendation action type for bedtime.", "default": "UNKNOWN" },
{"name": "status", "type":
{"name": "OuraSleepStatus", "type": "enum", "symbols": ["NOT_ENOUGH_NIGHTS", "NOT_ENOUGH_RECENT_NIGHTS", "BAD_SLEEP_QUALITY", "ONLY_RECOMMENDED_FOUND", "OPTIMAL_FOUND", "UNKNOWN"], "doc": "Sleep phase type as computed by Oura."},
"doc": "Oura sleep time status type. This is used to inform sleep time recommendation.", "default": "UNKNOWN" }
]
}
14 changes: 14 additions & 0 deletions commons/connector/oura/oura_rest_mode_period.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"namespace": "org.radarcns.connector.oura",
"name": "OuraRestModePeriod",
"type": "record",
"doc": "The Rest Mode scope includes information about rest mode periods.",
"fields": [
{"name": "time", "type": "double", "doc": "Start time of the rest mode period in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "endTime", "type": "double", "doc": "End time of the rest mode period in seconds since January 1, 1970, 00:00:00 UTC (Unix timestamp)."},
{"name": "timeReceived", "type": "double", "doc": "Time that this record was collected by a service in seconds since the Unix Epoch (s)."},
{"name": "id", "type": ["null", "string"], "doc": "Unique identifier of the rest mode period from Oura.", "default": null},
{"name": "startDay", "type": ["null", "string"], "doc": "Start date of the rest mode period. Null if unknown.", "default": null},
{"name": "endDay", "type": ["null", "string"], "doc": "End date of the rest mode period. Null if unknown.", "default": null}
]
}
Loading
Loading