DataPointHeader
The header (meta-data) attached to all DataPoints, like study, user, time span and data format.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, includeIfNull: false, explicitToJson: true)
Constructors
DataPointHeader.fromJson
Create a DataPointHeader from a JSON map.
DataPointHeader
Create a new DataPointHeader.
Properties
dataFormat
getter/setter pair
deviceRoleName
getter/setter pair
The role of the device that collected this data point.
endTime
getter/setter pair
The UTC end timestamp for this data point. If this data point does not cover a period, endTime will be null.
startTime
getter/setter pair
The UTC start timestamp for this data point.
studyId
getter/setter pair
An ID of this study.
CAWS expects the study deployment ID of the StudyDeployment from which this data point was generated.
triggerId
getter/setter pair
The id of the trigger in the study deployment that generated this data point.
uploadTime
getter/setter pair
The UTC time stamp of when this data point was uploaded to the server. Set by the server.
userId
getter/setter pair
The ID of the user (if known).
Methods
toJson
Return a JSON encoding of this object.