# Function: reportMonitor
▸ reportMonitor(params
: ReportMonitorParams): Promise‹ReportMonitorRes›
自定义业务数据监控上报接口
# 参数:
属性 | 类型 |
---|---|
params | ReportMonitorParams |
ReportMonitorParams
属性 | 类型 | 描述 |
---|---|---|
name | string | 监控ID,在「小程序管理后台」新建数据指标后获得 |
value | number | 上报数值,经处理后会在「小程序管理后台」上展示每分钟的上报总量 |
complete? | Method | 接口调用结束的回调函数(调用成功、失败都会执行) |
fail? | Method | 接口调用失败的回调函数 |
success? | Method | 接口调用成功的回调函数 |
# 返回值:
Promise‹ReportMonitorRes›