Updates an alert rule.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
PUT /alerts/{alertName} HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
project | string | Yes | The name of the project. | ali-test-project |
alertName | string | Yes | The ID of the alert rule. | alert-0123456789-123456 |
body | object | No | The new configurations of the alert rule. | |
displayName | string | Yes | The display name of the alert rule. | this is alert |
description | string | No | The description of the alert rule. | this is description |
configuration | AlertConfiguration | Yes | The detailed configurations of the alert rule. | |
schedule | Schedule | Yes | The scheduling settings 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.