diff --git a/commons/connector/fitbit/fitbit_intraday_spo2.avsc b/commons/connector/fitbit/fitbit_intraday_spo2.avsc new file mode 100644 index 00000000..c9e8fd8a --- /dev/null +++ b/commons/connector/fitbit/fitbit_intraday_spo2.avsc @@ -0,0 +1,11 @@ +{ + "namespace": "org.radarcns.connector.fitbit", + "type": "record", + "name": "FitbitIntradaySpo2", + "doc": "Intra day spo2 data from fitbit device.", + "fields": [ + { "name": "time", "type": "double", "doc": "Device timestamp in UTC (s)." }, + { "name": "timeReceived", "type": "double", "doc": "Time that the data was received from the Fitbit API (seconds since the Unix Epoch)." }, + { "name": "spo2", "type": "float", "doc": "Percentage value of SpO2 in the bloodstream. SpO2 data is collected when the user is in an extended period of sleep (at least 3 hours of quality sleep). Spo2 values are calculated on a 5-minute exponentially-moving average and provided at the end of a period of sleep."} + ] +} diff --git a/specifications/connector/radar-fitbit-connector.yml b/specifications/connector/radar-fitbit-connector.yml index 3825f4e0..cebb0835 100644 --- a/specifications/connector/radar-fitbit-connector.yml +++ b/specifications/connector/radar-fitbit-connector.yml @@ -37,3 +37,6 @@ data: - doc: Skin temperature topic: connect_fitbit_skin_temperature value_schema: .connector.fitbit.FitbitSkinTemperature + - doc: Spo2 or Blood oxygen saturation + topic: connect_fitbit_intraday_spo2 + value_schema: .connector.fitbit.FitbitIntradaySpo2 \ No newline at end of file