Gets line chart data for a device health variable
POST /v1/device/{deviceID}/health/linechart
Summary
Gets line chart data for a device health variable.
Details
Request body: JSON object with a variable name and optional epoch range,
count, and vertical line timestamps. Returns line chart data.
Authentication
No operation-level security requirement is documented here.
Parameters
| Name | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| deviceID | path | integer (int64) | Yes | The ID of the device whose line chart data should be generated. | 1 |
Request Body
Required: Yes
application/json
startEpoch(integer (int64), optional)endEpoch(integer (int64), optional)count(integer (int64), optional)variableName(string, optional)verticalLineTimestamps(array<integer (int64)>, optional)- array of
integer (int64)integer (int64)
- array of
Example
{
"startEpoch": 1711800000,
"endEpoch": 1711800000,
"count": 25,
"variableName": "Example value",
"verticalLineTimestamps": [
1
]
}
Responses
200
Success
application/json
datasets(array<Dataset>, optional)- array of
Datasetlabel(string, optional)data(array<DataPoint>, optional)- array of
DataPointtime(integer (int64), optional)value(number (double), optional)
- array of
- array of
verticalLines(array<VerticalLine>, optional)- array of
VerticalLinetimestamp(integer (int64), optional)color(string, optional)
- array of
Example
{
"datasets": [
{
"label": "Example value",
"data": [
null
]
}
],
"verticalLines": [
{
"timestamp": 1,
"color": "Example value"
}
]
}