io.edgehog.devicemanager.apps.stats.VolumeUsage v0.1
Statistics on the volumes
About
This interface is of type datastream and is owned by the device, meaning that it is the device which initiates the data flow. Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object aggregation. Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/%{volume_id}/driverwithstringtype. Name of the volume driver used by the volume./%{volume_id}/mountpointwithstringtype. Mount path of the volume on the host./%{volume_id}/createdAtwithdatetimetype. Date/Time the volume was created./%{volume_id}/usageDataSizewithlongintegertype. Amount of disk space used by the volume (in bytes)./%{volume_id}/usageDataRefCountwithlongintegertype. The number of containers referencing this volume.
/%{volume_id}/driver
Name of the volume driver used by the volume.
This endpoint accepts values of type string: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and volume_id can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.
/%{volume_id}/mountpoint
Mount path of the volume on the host.
This endpoint accepts values of type string: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and volume_id can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.
/%{volume_id}/createdAt
Date/Time the volume was created.
This endpoint accepts values of type datetime: a UTC timestamp, internally represented as milliseconds since 1st Jan 1970 using a signed 64 bits integer. (datetime is represented as an ISO 8601 string by default in JSON based APIs.)
The endpoint is parametric and volume_id can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.
/%{volume_id}/usageDataSize
Amount of disk space used by the volume (in bytes).
This endpoint accepts values of type longinteger: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint is parametric and volume_id can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.
/%{volume_id}/usageDataRefCount
The number of containers referencing this volume.
This endpoint accepts values of type longinteger: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint is parametric and volume_id can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it.