Table of Contents

Sensor Statistics

The request is intended to get statistics of unit's sensors.

Request Example

&svc=get_graph&params={
    "id_unit": integer,
    "from": timestamp,
    "to": timestamp,
    "sensors_ids": [
        integer,
        integer,
        ...
    ],
    "fields": [
        string,
        string,
        ...
    ]
}

Parameters

Parameter Description
id_unit Unique Unit ID
from Start time of getting statistics
to end time of getting statistics
sensors_ids Array of Sensor IDs
fields Array of Fields

Server Response

Result:
[
    {
        "time": 1517034271 // Message time
    },
    ...
]