-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from RADAR-base/release-0.3.3
Release 0.3.3
- Loading branch information
Showing
21 changed files
with
235 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"namespace": "org.radarcns.connector.fitbit", | ||
"type": "record", | ||
"name": "FitbitIntradayHeartRate", | ||
"doc": "Intra day heart rate 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": "timeInterval", "type": "int", "doc": "Chronological window size (s)." }, | ||
{ "name": "timezoneOffset", "type": "int", "doc": "Offset from UTC (s)." }, | ||
{ "name": "heartRate", "type": "int", "doc":"Heart rate value (bpm)."} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"namespace": "org.radarcns.connector.fitbit", | ||
"type": "record", | ||
"name": "FitbitIntradaySteps", | ||
"doc": "Intra day steps 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": "timeInterval", "type": "int", "doc": "Chronological window size (s)." }, | ||
{ "name": "timezoneOffset", "type": "int", "doc": "Offset from UTC (s)." }, | ||
{ "name": "steps", "type": "int", "doc":"Steps taken in this period."} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"namespace": "org.radarcns.connector.fitbit", | ||
"type": "record", | ||
"name": "FitbitSleepPattern", | ||
"doc": "Classic sleep data as defined at https://dev.fitbit.com/build/reference/web-api/sleep/.", | ||
"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": "level", "type": "string", "doc": "Level of sleep, 'awake', 'restless', or 'asleep'." }, | ||
{ "name": "timezoneOffset", "type": "int", "doc": "Offset from UTC (s)." }, | ||
{ "name": "sleepDuration", "type": "int", "doc":"Duration at this sleep characteristic in seconds." } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"namespace": "org.radarcns.connector.fitbit", | ||
"type": "record", | ||
"name": "FitbitSleepStage", | ||
"doc": "Fitbit 'stages' sleep data as defined at https://dev.fitbit.com/build/reference/web-api/sleep/.", | ||
"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": "level", "type": "string", "doc": "Level of sleep, 'deep', 'light', 'rem', or 'awake'." }, | ||
{ "name": "timezoneOffset", "type": "int", "doc": "Offset from UTC (s)." }, | ||
{ "name": "sleepDuration", "type": "int", "doc":"Duration at this sleep characteristic in seconds." } | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
commons/monitor/questionnaire/questionnaire_completion_log.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"namespace": "org.radarcns.monitor.questionnaire", | ||
"type": "record", | ||
"name": "QuestionnaireCompletionLog", | ||
"doc": "Schema for reporting the completion status of a questionnaire. This will help in calculating the compliance.", | ||
"fields": [ | ||
{ "name": "time", "type": "double", "doc": "Timestamp in UTC (s) when the questionnaire completion log is submitted." }, | ||
{ "name": "name", "type": "string", "doc": "Questionnaire name." }, | ||
{ "name": "completionPercentage", "type": [ "null", "double"], "doc": "Percentage of the questionnaire completed. 0 for not at all complete and 100 for full completion. Null if no completion value possible." , "default": null } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...emas-tools/src/main/java/org/radarcns/schema/specification/connector/ConnectorSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.radarcns.schema.specification.connector; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.radarcns.schema.Scope; | ||
import org.radarcns.schema.specification.DataProducer; | ||
import org.radarcns.schema.specification.DataTopic; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Data producer for third-party connectors. This data topic does not register schemas to the schema | ||
* registry by default, since Kafka Connect will do that itself. To enable auto-registration, set | ||
* the {@code register_schema} property to {@code true}. | ||
*/ | ||
public class ConnectorSource extends DataProducer<DataTopic> { | ||
@JsonProperty | ||
private List<DataTopic> data; | ||
|
||
public ConnectorSource() { | ||
registerSchema = false; | ||
} | ||
|
||
@Override | ||
public List<DataTopic> getData() { | ||
return data; | ||
} | ||
|
||
@Override | ||
public Scope getScope() { | ||
return Scope.CONNECTOR; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.