获取月级别的统计

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

获取月级别的统计

API address

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

Request parameter

Parameter nameTypeINRequiredDescription
devIdStringquerytrue设备id
dpIdIntegerquerytruedpId
typeStringquerytrue统计类型
startMonthStringquerytrue开始月份(yyyyMM)
endMonthStringquerytrue结束月份(yyyyMM)
autoIntegerqueryfalse补数据的逻辑
keepScalaPointBooleanqueryfalsekeepScalaPoint

Request example

null

Return example

{
    "result": {
        "result": {
            "202008": "12.21",
            "202009": "0",
            "202006": "0",
            "202105": "0",
            "202007": "0",
            "202106": "0.00",
            "202103": "0",
            "202104": "0",
            "202101": "0",
            "202102": "0",
            "202011": "0",
            "202012": "14.88",
            "202010": "0"
        },
        "min": "202106"
    },
    "t": 1623398261972,
    "success": true,
    "status": "ok"
}

Error code

For more information, see error code.