SDK Reference v2.0.0 / DeviceDataPointPersistModel

DeviceDataPointPersistModel

struct DeviceDataPointPersistModel : Encodable

Describes a device data point to create or update.


identifier
let identifier: String?

External identifier for the device data point. Set by the source application, and may be empty. Optional. Natural Key property.

type
let type: String

The general category this device data point belongs in, or what the device data represents. Natural Key property.

value
let value: String

The value of the recorded data point.

units
let units: String?

The units, if any, that the 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). Natural Key property.

observationDate
let observationDate: Date?

The date at which this device data point was completely recorded. Natural Key property.

init(identifier: type: value: units: properties: source: startDate: observationDate:)
init(identifier: String?, type: String, value: String, units: String?, properties: [String : String], source: DeviceDataPointSource?, startDate: Date?, observationDate: Date?)

Initializes an object describing a device data point to create or update.

identifier

External identifier for the device data point. Set by the source application, and may be empty. Optional. Natural Key property.

type

The general category this device data point belongs in, or what the device data represents. Natural Key property.

value

The value of the recorded data point.

units

The units, if any, that the data was recorded in.

properties

Properties of the device data point.

source

Identifying information about the device which recorded the data point.

startDate

The date at which this device data point began being recorded (for data that is recorded over time). Natural Key property.

observationDate

The date at which this device data point was completely recorded. Natural Key property.