Creates an alert rule in a project.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /alerts HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
body | object | No | The configurations of the alert rule. | |
name | string | Yes | The name of the alert rule. Make sure that the name is unique in a project. | alert-123456 |
displayName | string | Yes | The display name of the alert rule. | test-alert |
description | string | No | The description of the alert rule. | An alert rule |
configuration | AlertConfiguration | Yes | The detailed configurations of the alert rule. | |
schedule | Schedule | Yes | The scheduling configurations of the alert rule. |
Response parameters
Examples
Sample success responses
JSON
format
{}
Error codes
For a list of error codes, visit the Service error codes.