Creates an alert rule in a project.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:CreateAlert |
create |
*All Resource
|
None | None |
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 elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.