Skip to content

Commit

Permalink
Fix Oura schema number types
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Jun 13, 2023
1 parent 3f22226 commit bddb724
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion commons/connector/oura/oura_daily_activity.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{"name": "fiveMinuteClass", "type": ["null", "int"], "doc": "A 5-minute activity classification for the activity period: 0 - Non-wear, 1 - Rest, 2 - Inactive, 3 - Low Activity, 4 - Medium Activity, 5 - High Activity. Null if unknown.", "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", "int"], "doc": "Average metabolic equivalent (MET) in minutes. 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},
Expand Down
4 changes: 2 additions & 2 deletions commons/connector/oura/oura_daily_readiness.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{"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", "int"], "doc": "Temperature deviation in degrees Celsius. Null if unknown.", "default": null},
{"name": "temperatureTrendDeviation", "type": ["null", "int"], "doc": "Temperature trend deviation in degrees Celsius. 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}
]
}
4 changes: 2 additions & 2 deletions commons/connector/oura/oura_met.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"namespace": "org.radarcns.connector.oura",
"name": "OuraMet",
"type": "record",
"doc": "This describes the metabolic equivalent data (MET) during an activity.",
"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": "met", "type": ["null", "int"], "doc": "Activity metabolic equivalent (MET) in seconds.", "default": null}
{"name": "met", "type": ["null", "float"], "doc": "Activity metabolic equivalent (MET) in seconds.", "default": null}
]
}
6 changes: 3 additions & 3 deletions commons/connector/oura/oura_personal_info.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
{"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", "string"], "doc": "Age of the user.", "default": null},
{"name": "weight", "type": ["null", "string"], "doc": "Weight of the user.", "default": null},
{"name": "height", "type": ["null", "string"], "doc": "Height of the user.", "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}
]
Expand Down
4 changes: 2 additions & 2 deletions commons/connector/oura/oura_readiness.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
{"name": "contributorRecoveryIndex", "type": ["null", "int"], "doc": "Contribution of cumulative activity balance to the readiness score in range [1, 100].", "default": null},
{"name": "contributorRestingHeartRate", "type": ["null", "int"], "doc": "Contribution of cumulative activity balance to the readiness score in range [1, 100].", "default": null},
{"name": "contributorSleepBalance", "type": ["null", "int"], "doc": "Contribution of cumulative activity balance to the readiness score in range [1, 100].", "default": null},
{"name": "temperatureDeviation", "type": ["null", "int"], "doc": "Temperature deviation in degrees Celsius.", "default": null},
{"name": "temperatureTrendDeviation", "type": ["null", "int"], "doc": "Temperature trend deviation in degrees Celsius.", "default": null}
{"name": "temperatureDeviation", "type": ["null", "float"], "doc": "Temperature deviation in degrees Celsius.", "default": null},
{"name": "temperatureTrendDeviation", "type": ["null", "float"], "doc": "Temperature trend deviation in degrees Celsius.", "default": null}

]
}
4 changes: 2 additions & 2 deletions commons/connector/oura/oura_sleep.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{"name": "time", "type": "double", "doc": "Timestamp of the note containing the Oura tags."},
{"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 sleep record.", "default": null},
{"name": "averageBreath", "type": ["null", "int"], "doc": "Average breathing rate during sleep as breaths/second.", "default": null},
{"name": "averageHeartRate", "type": ["null", "int"], "doc": "Average heart rate during sleep as beats/minute.", "default": null},
{"name": "averageBreath", "type": ["null", "float"], "doc": "Average breathing rate during sleep as breaths/second.", "default": null},
{"name": "averageHeartRate", "type": ["null", "float"], "doc": "Average heart rate during sleep as beats/minute.", "default": null},
{"name": "averageHrv", "type": ["null", "int"], "doc": "Average heart rate variability during sleep.", "default": null},
{"name": "awakeTime", "type": ["null", "int"], "doc": "Duration spent awake in seconds.", "default": null},
{"name": "bedtimeEnd", "type": ["null", "string"], "doc": "Bedtime end of the sleep.", "default": null},
Expand Down
2 changes: 1 addition & 1 deletion commons/connector/oura/oura_workout.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{"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 workout from Oura.", "default": null},
{"name": "calories", "type": ["null", "int"], "doc": "Energy burned in kilocalories during the workout. Null if unknown.", "default": null},
{"name": "calories", "type": ["null", "float"], "doc": "Energy burned in kilocalories during the workout. Null if unknown.", "default": null},
{"name": "day", "type": ["null", "string"], "doc": "Day when the workout occurred. Null if unknown.", "default": null},
{"name": "distance", "type": ["null", "float"], "doc": "Distance traveled in meters during the workout. Null if unknown.", "default": null},
{"name": "startDateTime", "type": ["null", "string"], "doc": "Timestamp indicating when the workout started. Null if unknown.", "default": null},
Expand Down

0 comments on commit bddb724

Please sign in to comment.