import { IGetLogInSpecifiedTime, IGetDpReportLog, IGetDpLogDays, IGetDpResultByMonth, IGetDpResultByHour, IGetDataWithSpecified, IGetWeekWithSpecified, IGetMonthWithSpecified, IGetMultiDpsAllResult, IGetLogInSpecifiedTimeResponse, IGetDpReportLogResponse, IGetDpLogDaysResponse, IGetDpResultByMonthResponse, IGetDpResultByHourResponse, IGetDataWithSpecifiedResponse, IGetWeekWithSpecifiedResponse, IGetMonthWithSpecifiedResponse, IGetMultiDpsAllResultResponse } from './interface'; /** * 获取 DP 点指定时间段内的上报日志(支持分页) * * @public * @since @ray-js/ray 1.5.2 * @param params - 请求参数 * @param params.devId - 设备 ID * @param params.dpIds - DP 点 ID,多个 ID 用英文逗号隔开 * @param params.offset - 分页偏移量 * @param params.limit - 每页数量,最大值上限为 1000 * @param params.startTime - 查询起始时间戳(毫秒) * @param params.endTime - 查询结束时间戳(毫秒) * @param params.sortType - 排序方式:'DESC' 倒序(默认)或 'ASC' 顺序 * @returns 日志数据,包含总条数、DP 日志列表、是否有下一页 * @example 基础用法 * ```ts * import { getLogInSpecifiedTime } from '@ray-js/ray'; * * getLogInSpecifiedTime({ * devId: 'vdevo169477319679442', * dpIds: '1,2', * offset: 0, * limit: 50, * startTime: '1620000000000', * endTime: '1629999999999', * sortType: 'DESC', * }).then((res) => { * console.log('日志数据:', res); * }).catch((error) => { * console.error(error); * }); * ``` */ declare const getLogInSpecifiedTime: (params: IGetLogInSpecifiedTime) => Promise; /** * 获取 DP 点上报日志(支持分页) * * @public * @since @ray-js/ray 1.5.2 * @param params - 请求参数 * @param params.devId - 设备 ID * @param params.dpIds - DP 点 ID,多个 ID 用英文逗号隔开 * @param params.offset - 分页偏移量 * @param params.limit - 每页数量,最大值上限为 1000 * @param params.sortType - 排序方式:'DESC' 倒序(默认)或 'ASC' 顺序 * @returns 日志数据,包含总条数、DP 日志列表、是否有下一页 * @example 基础用法 * ```ts * import { getDpReportLog } from '@ray-js/ray'; * * getDpReportLog({ * devId: 'vdevo169477319679442', * dpIds: '1,2', * offset: 0, * limit: 50, * sortType: 'DESC', * }).then((res) => { * console.log('上报日志:', res); * }).catch((error) => { * console.error(error); * }); * ``` */ declare const getDpReportLog: (params: IGetDpReportLog) => Promise; /** * 获取用户操作的下发日志(支持分页) * * @public * @since @ray-js/ray 1.5.2 * @param params - 请求参数 * @param params.devId - 设备 ID * @param params.dpIds - DP 点 ID,多个 ID 用英文逗号隔开 * @param params.offset - 分页偏移量 * @param params.limit - 每页数量,最大值上限为 1000 * @param params.sortType - 排序方式:'DESC' 倒序(默认)或 'ASC' 顺序 * @returns 用户操作日志数据,包含总条数、DP 日志列表、是否有下一页 * @example 基础用法 * ```ts * import { getLogUserAction } from '@ray-js/ray'; * * getLogUserAction({ * devId: 'vdevo169477319679442', * dpIds: '1,2', * offset: 0, * limit: 50, * sortType: 'DESC', * }).then((res) => { * console.log('用户操作日志:', res); * }).catch((error) => { * console.error(error); * }); * ``` */ declare const getLogUserAction: (params: IGetDpReportLog) => Promise; /** * 获取指定日期范围内 DP 点每日上报的数据统计 * * @public * @since @ray-js/ray 1.5.2 * @param params - 请求参数 * @param params.devId - 设备 ID * @param params.dpId - DP 点 ID * @param params.startDay - 开始日期,格式为 yyyyMMdd,例如 20180529 * @param params.endDay - 结束日期,格式为 yyyyMMdd,例如 20180531 * @param params.type - 统计类型:sum(求和)、min(最小值)或 max(最大值) * @returns 每日统计数据,包含总条数、日期列表、对应每天的值列表 * @example 基础用法 * ```ts * import { getDpLogDays } from '@ray-js/ray'; * * getDpLogDays({ * devId: 'vdevo169477319679442', * dpId: '1', * startDay: '20240101', * endDay: '20240131', * type: 'sum', * }).then((res) => { * console.log('每日统计:', res); * }).catch((error) => { * console.error(error); * }); * ``` */ declare const getDpLogDays: (params: IGetDpLogDays) => Promise; /** * 按月(一年)获取 DP 点的统计结果 * @param {string} devId 设备Id * @param {string} dpId dpId * @param {string} type 统计的类型,sum、minux 或 max */ declare const getDpResultByMonth: (params: IGetDpResultByMonth) => Promise; /** * 按小时获取 DP 点的统计数据 * @param {string} devId 设备Id * @param {string} dpId dpId * @param {string} date 日期 * @param {string} type 统计的类型,sum、minux 或 avg * @param {string} uid 用户id * @param {number} auto auto=1 :中间数据缺失时,使用上一时段的数据补充。auto=2 :中间数据缺失时,使用#补充 */ declare const getDpResultByHour: (params: IGetDpResultByHour) => Promise; /** * 获取指定天数范围内的数据 * @param {string} devId 设备Id * @param {string} dpId dpId * @param {string} startDay 开始日期,例如20180529 * @param {string} endDay 结束日期,例如20180531 * @param {string} type 统计的类型,sum、minux 或 avg * @param {string} uid 用户id * @param {number} auto auto=1 :中间数据缺失时,使用上一时段的数据补充。auto=2 :中间数据缺失时,使用#补充 */ declare const getDataWithSpecified: (params: IGetDataWithSpecified) => Promise; /** * 获取指定周范围内的数据 * @param {string} devId 设备Id * @param {string} dpId dpId * @param {string} startWeek 开始周 * @param {string} endWeek 结束周 * @param {string} type 统计的类型,sum、minux 或 avg */ declare const getWeekWithSpecified: (params: IGetWeekWithSpecified) => Promise; /** * 获取指定月范围内的数据 * @param {string} devId 设备Id * @param {string} dpId dpId * @param {string} startMonth 开始月 * @param {string} endMonth 结束月 * @param {string} type 统计的类型,sum、minux 或 avg * @param {string} uid 用户id * @param {number} auto auto=1 :中间数据缺失时,使用上一时段的数据补充。auto=2 :中间数据缺失时,使用#补充 */ declare const getMonthWithSpecified: (params: IGetMonthWithSpecified) => Promise; /** * 获取单个 DP 点所有统计结果的聚合 * @param {string} devId 设备Id * @param {string} dpId dpId * @param {string} type 统计的类型,sum、minux 或 avg */ declare const getDpAllStatistResult: (params: IGetDpResultByMonth) => Promise<{ total: string; time: number; }>; /** * 获取多个 DP 点的统计结果的聚合(不限时长) * @param {string} devId 设备Id * @param {string} dpIds DP 点的 ID,多个 ID 使用逗号(,)分隔 * @param {string} startTime 开始时间 * @param {string} endTime 结束时间 * @param {number} size 一条的页数 * @param {number} reverse reverse=1: 正序 reverse=2: 倒序 * @param {number} rowType 查询的类型 rowType=1: 下一页 rowType=-1: 上一页 * @param {string} startRowKey 开始页索引 * @param {string} endRowKey: 结束页索引 */ declare const getMultiDpsAllResult: (params: IGetMultiDpsAllResult) => Promise; export { getLogInSpecifiedTime, getDpReportLog, getLogUserAction, getDpLogDays, getDpResultByMonth, getDpResultByHour, getDataWithSpecified, getWeekWithSpecified, getMonthWithSpecified, getDpAllStatistResult, getMultiDpsAllResult, };