Query Data Overview Chart

Last Updated on : 2022-04-02 08:59:51download

Query the data overview chart of a specified tenant device based on the device type number, time type, and time.

API address

GET: /v1.0/iot-03/si/datapoint/analysis/survey/chart

Request parameter

Parameter nameTypeINRequiredDescription
device_type_codeStringquerytrueThe code of a specified device type.
typeIntegerquerytrueThe time type. Valid values:
  • 1: day.
  • 2: month.
  • 3: year.
start_timeLongquerytrueThe start time.
end_timeLongquerytrueThe end time.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
keyLongThe time point.
valueDoubleThe value of the data.

Request example

GET: /v1.0/iot-03/si/datapoint/analysis/survey/chart?device_type_code=water&type=2&start_time=20211001&end_time=20211031

Return example

    "result": [
            "value": 0,
            "key": 20211026
            "value": 10.644,
            "key": 20211027
            "value": 12.099,
            "key": 20211028
    "t": 1635499353396,
    "success": true

Error code

For more information, see error code.