getStatisticsRangMonth
该接口为云能力,需开通授权后使用,关于云能力可查看文档
目前云能力在开发者工具
环境无法使用,需要打包后或真机调试使用。
月 为时间间隔,获取设备日期区间的统计数据。
请求参数
参数 | 数据类型 | 说明 | 是否必填 |
---|---|---|---|
devId | string | 设备 ID | 是 |
dpId | string | number | DP 点的 ID | 是 |
startMonth | string | 开始月份,yyyyMM 格式 | 是 |
endMonth | string | 结束月份, yyyyMM 格式 | 是 |
type | string | 统计类型,'sum' | 'avg' | 'minux' | 'max' | 'min' | 'count';默认 sum | 否 |
请求示例
// @ray-js/ray^1.2.12
import { getStatisticsRangMonth } from '@ray-js/ray';
getStatisticsRangMonth({
devId: 'vdevo161733425146241',
dpId: '18',
startMonth: '202304',
endMonth: '202305',
type: 'avg',
})
.then((response) => {
console.log(response);
})
.catch();
返回示例
var response = {
202304: '0',
202305: '24.00',
};
此页内容是否对您有帮助?
是
意见反馈