Alert

The alert feature monitors the key performance indicators of mini programs to spot potential issues and then sends alerts to the super app. By catching issues early, the super app can quickly resolve them, which helps provide a smooth user experience and keep mini programs reliable. This topic covers the available alert rules and guides the super app through using the alert feature.

Alert rules

The super app can apply the following five alert rules on Mini Program Platform:

  • JSAPI success rate: This kind of alert might be triggered by several factors. Generally, the alert occurs if the mini-program success rate for JSAPI calls falls below 95% with over 50 JSAPI calls.
  • request API exception rate: This kind of alert might be triggered by several factors. Generally, the alert occurs if the mini-program exception rate for HTTP requests rises above 1% with over 50 exceptions.
  • Mini program start-up success rate: This kind of alert might be triggered by several factors. Generally, the alert occurs if the mini-program success rate for start-ups falls below 95% with over 50 start-ups.
  • Mini program start-up duration: This kind of alert might be triggered by several factors. Generally, the alert occurs if the mini-program start-up duration takes 500 milliseconds or more.
  • Mini program blank screen rate: This kind of alert might be triggered by several factors. Generally, the alert occurs if the mini-program blank screen rate rises above 1% with over 50 blank screen incidents.

Before you begin

Before using the alert feature, the super app must be familiar with the following guidance:

  • The super app needs to contact the business development representative or support representative to enable the alert feature in your workspace.
  • The alert feature is only accessible to Workspace Admins.

View alert settings

On Mini Program Platform, navigate to Quality > Alert in your workspace to view the list of alert rules. The list provides the following key information:

  • Rule ID and Rule Name: The two fields that uniquely identify an alert rule. For details on the rules, refer to Alert rule.
  • Mini Program ID: The ID of the mini programs to which the alert rules apply.
  • Notification Email: The email addresses to which the alerts are sent.

Change alert settings

For each rule, the super app can select which mini programs the rule applies to and which email addresses receive the alerts. By default, both the mini-program and email notification settings are blank, meaning no alerts will be triggered unless the super app changes these settings after enabling the alert feature. To change the settings, take the following steps:

1. Go to Quality > Alert in your workspace to access the list of alert rules, and then select Manage in the last Action column for the rule you want to apply.

2. On the rule management page, configure the settings in two sections:

  • Eligible Mini Programs: Select the mini programs to which the rule applies. You can either select all mini programs by using the All checkbox or select up to 20 specific mini programs. For quick selection on the current page, use the All on this page checkbox. This option is only available if the sum of mini programs currently on the page and those already selected does not exceed 20.
  • Notification Emails: Select up to 20 emails to receive alerts. For quick selection on the current page, use the All on this page checkbox. This option is only available if the sum of emails currently on the page and those already selected does not exceed 20.

3. Review the selected mini programs and emails, and then click Save to confirm the changes.

View alert history

The super app can view the alert history by navigating to Quality > Alert > History in the workspace. By default, the page displays a comprehensive list of all alerts related to all the alert rules and their corresponding mini programs. To view alerts for a specific mini program, use the search field by entering the name or ID of the mini program, and then selecting the appropriate option from the dropdown list to refine your search. Key information on this page includes:

  • Alert Time: The time when the alert occurs.
  • Mini Program ID: The ID of the mini program that triggers the alert.
  • Alert Rule: The type of alert that is triggered.
  • Alert Information: A description of the alert event.