SDK Reference v2.0.0 / DeviceDataPoint
DeviceDataPoint
struct DeviceDataPoint : Identifiable, Decodable
A single device data point stored in MyDataHelps.
ID
typealias MyDataHelpsKit.DeviceDataPoint.ID = ScopedIdentifier<DeviceDataPoint, String>
Auto-generated, globally-unique identifier for a DeviceDataPoint.
id
let id: ID
Auto-generated, globally-unique identifier.
namespace
let namespace: DeviceDataNamespace
Identifies device data as from a specific source system.
deviceDataContextID
let deviceDataContextID: DeviceDataContext.ID?
Auto-generated, globally-unique identifier for a group of device data points, which share some context.
insertedDate
let insertedDate: Date
Date when the data point was first added.
modifiedDate
let modifiedDate: Date
Date when the data point was last updated in the system.
identifier
let identifier: String?
External identifier for the device data point. Set by the source application, and may be empty.
type
let type: String
The type of device data within its namespace, e.g. “HeartRate”.
value
let value: String
The value of the recorded device data point. Values are generically represented as Strings. Depending on the type of device data, it may be appropriate to convert or parse the value into a known numeric or other format.
units
let units: String?
The units, if any, that the device data was recorded in.
properties
let properties: [String : String]
Properties of the device data point.
source
let source: DeviceDataPointSource?
Identifying information about the device which recorded the data point.
startDate
let startDate: Date?
The date at which this device data point began being recorded (for data that is recorded over time).
observationDate
let observationDate: Date?
The date at which this device data point was completely recorded.