UpdateAlertAction
Updates an alert action integration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UpdateAlertAction |
update |
*AlertAction
|
None | None |
Request syntax
PATCH /alertAction/{alertActionId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| alertActionId |
string |
Yes |
The unique identifier of the alert action integration. |
testId |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| mnsParam |
object |
No |
The Simple Message Queue (formerly MNS) (MSMQ) parameters. |
|
| mnsType |
string |
No |
The resource type of Simple Message Queue (formerly MNS) (MSMQ). Valid values:
|
queue |
| name |
string |
No |
The resource name.
|
testName |
| regionId |
string |
No |
The region ID. |
cn-zhangjiakou |
| type |
string |
No |
The alert action integration type. Valid values:
|
FC |
| slsParam |
object |
No |
The Simple Log Service parameters. |
|
| logstore |
string |
No |
The name of the Simple Log Service Logstore. |
testLogstore |
| project |
string |
No |
The name of the Simple Log Service project. |
testProject |
| regionId |
string |
No |
The region ID. |
cn-shanghai |
| alertActionName |
string |
No |
The name of the alert action integration. |
testName |
| fcParam |
object |
No |
The Function Compute parameters. |
|
| function |
string |
No |
The name of the function in Function Compute. |
testName |
| regionId |
string |
No |
The region ID. |
cn-beijing |
| service |
string |
No |
The service name of Function Compute. |
testService |
| pagerDutyParam |
object |
No |
The PagerDuty parameters. |
|
| key |
string |
No |
The integration key for PagerDuty. |
fwe4rwr543t543t43t43t43 |
| url |
string |
No |
The integration webhook URL for PagerDuty. Both V1 and V2 are supported. |
https://events.pagerduty.com/v2/enqueue |
| essParam |
object |
No |
The elastic scaling parameters. |
|
| essGroupId |
string |
No |
The ID of the elastic scaling group. |
testId |
| essRuleId |
string |
No |
The ID of the elastic scaling rule. |
testId |
| regionId |
string |
No |
The region ID. |
cn-beijing |
| webhookParam |
object |
No |
The webhook parameters. |
|
| method |
string |
No |
The webhook request method. Valid values:
|
POST |
| url |
string |
No |
The URL of the alert callback. |
http://www.test.com |
| contentType |
string |
No |
The data format. This parameter takes effect only when the request method is POST. Valid values:
|
JSON |
| headers |
object |
No |
The request headers. |
{"X-Total-Count":"0"} |
|
string |
No |
The value of the header. |
{'X-Total-Count': 0} |
|
| fc3Param |
object |
No |
The Function Compute 3.0 parameters. |
|
| regionId |
string |
No |
The region ID. |
cn-heyuan |
| function |
string |
No |
The name of the function in Function Compute. |
test |
| qualifier |
string |
No |
The version or alias of the function. |
test |
| ebParam |
object |
No |
The event bus parameters. |
|
| regionId |
string |
No |
The region ID. |
cn-heyuan |
| eventBusName |
string |
No |
The name of the event bus. |
test |
| subject |
string |
No |
The subject. |
test |
| ebSource |
string |
No |
The event source. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
8FDE2569-626B-5176-9844-28877A***** |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s is missing or invalid. | The parameter %s is missing or invalid. |
| 400 | InvalidParameterValue | Invalid request: %s | |
| 500 | InternalUnknownError | The request processing has failed due to some unknown error. | A service runtime error occurred. |
| 404 | ResourceNotFound | The specified resource %s is not found. | The specified resource% s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.