The Core Data microservice provides a centralized persistence facility for data readings collected by devices and sensors.
Content
Core Data's purpose
Event & Reading
REST API outline
Reference
Core Data’s Purpose
Provides a centralized persistence facility for data readings collected by devices and sensors.
Device services for devices and sensors that collect data, call on Core Data to store the device and sensor data on the edge system (such as a gateway)
Allows for store and forward technology
Supports actuation decisions at the edge
Data is stored until…
It can be moved "north" and exported to Enterprise and cloud systems
It is “scrubbed” to make way for new sensor data
Provides an API that other services can use to access the historical data
Should be used sparingly as not to impact data collection
Event & Reading
Events are collections of Readings
Associated to a device
Readings represent a sensing on the part of a device/sensor
Simple Key/Value pair
Key is a value descriptor
Value is the sensed value
Ex: Temperature: 72
Event would need to have one Reading to make sense
REST API Outline
Event APIs
DELETE – should really only be used by data clean up facilities
GET’s galore to query for Events, by
id
Associated Device
timestamp (range start & end)
Associated Device and Reading with particular Value Descriptor