You can use Log Service SDK to manage alerts.

Log Service SDK supports the following operations for alert management:
  • Initialize alert resource data.
  • Manage alert monitoring rules, including creating, modifying, deleting, and viewing alert monitoring rules.
  • Manage alert resource data, including creating, modifying, deleting, and viewing alert resource data. The alert resource data includes users, user groups, webhook integration, alert templates, alert policies, and action policies.
Before you can use Log Service SDK, you must install the SDK for the language that you prefer. For more information, see Overview of Log Service SDK. After the SDK is installed, you can use the SDK to manage alerts based on the following topics: