获取天级别的统计

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

获取天级别的统计

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
devIdStringquerytrue设备id
dpIdIntegerquerytruedpId
typeStringquerytrue统计类型
startDayStringquerytrue查询的开始日期,格式:yyyyMMdd
endDayStringquerytrue查询的结束日期,格式:yyyyMMdd
autoIntegerqueryfalse补数据的逻辑
keepScalaPointBooleanqueryfalsekeepScalaPoint

Request example

null

Return example

{
    "result": {
        "result": {
            "20210529": "15.00",
            "20210530": "10.00"
        },
        "min": "20210630"
    },
    "t": 1625066496117,
    "success": true,
    "status": "ok"
}

Error code

For more information, see error code.