# wx.reportMonitor(string name, number value)

Start from base library version 2.0.1. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Not supported

Custom service data monitoring and reporting interface.

# parameter

# string name

Monitor ID, inMini Program management backgroundNew data indicators obtained

# number value

The value is reported and processed in theMini Program management backgroundShow the total amount reported per minute

# Instructions

Before use, you need toMini Program Management Background - Operation and Maintenance Center - Performance Monitoring - Business Data MonitoringConfigure the monitoring description and alarm type. Each monitoring event has a unique monitoring ID, and developers can create up to 128 monitoring events.

# sample code

wx.reportMonitor('1', 1)