获取小时级别的统计

Last Updated on : 2023-10-25 03:34:31download

获取小时级别的统计

API address

GET: /v1.0/m/analytics/statistics/rang/hour

Request parameter

Parameter nameTypeINRequiredDescription
devIdStringquerytruedevId
dpIdStringquerytruedpId
dateStringquerytrue要获取统计数据的日期,格式: yyyyMMdd
autoIntegerqueryfalse补数据的逻辑,默认0
typeStringquerytrue统计类型
keepScalaPointBooleanqueryfalsekeepScalaPoint

Request example

null

Return example

{
    "result": {
        "2021063010": "29.87",
        "2021063002": "29.82",
        "2021063003": "29.80",
        "2021063000": "29.93",
        "2021063011": "29.97",
        "2021063001": "29.89",
        "2021063006": "29.68",
        "2021063007": "29.71",
        "2021063004": "29.76",
        "2021063005": "29.70",
        "2021063008": "29.76",
        "2021063009": "29.81"
    },
    "t": 1625025388494,
    "success": true,
    "status": "ok"
}

Error code

For more information, see error code.