CreateAlertAction
Creates an alert action integration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateAlertAction |
create |
*AlertAction
|
None | None |
Request syntax
POST /alertAction HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| mnsParam |
object |
No |
The Simple Message Queue (formerly MNS) parameters. |
|
| mnsType |
string |
No |
The Simple Message Queue (formerly MNS) resource type. Valid values:
|
queue |
| name |
string |
No |
The resource name.
|
testName |
| regionId |
string |
No |
The region ID. |
cn-beijing |
| type |
string |
Yes |
The 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-zhangjiakou |
| alertActionName |
string |
Yes |
The name of the action integration. |
testName |
| alertActionId |
string |
No |
The unique identifier of the action integration. |
testId |
| 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-hangzhou |
| fcParam |
object |
No |
The Function Compute parameters. |
|
| function |
string |
No |
The name of the function in Function Compute. |
testFunction |
| regionId |
string |
No |
The region ID. |
cn-hangzhou |
| service |
string |
No |
The service name of Function Compute. |
testService |
| pagerDutyParam |
object |
No |
The PagerDuty parameters. |
|
| key |
string |
No |
The integration key for PagerDuty. |
fds3wr54rvcxfr4543t6435 |
| url |
string |
No |
The integration webhook for PagerDuty. V1 and V2 are supported. |
https://events.pagerduty.com/v2/enqueue |
| webhookParam |
object |
No |
The webhook parameters. |
|
| method |
string |
No |
The webhook request method. Valid values:
|
POST |
| url |
string |
No |
The URL for 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 header information. |
|
|
string |
No |
The request header information. |
{'X-Total-Count': 0} |
|
| fc3Param |
object |
No |
The Function Compute 3.0 parameters. |
|
| regionId |
string |
No |
The region ID. |
cn-nanjing |
| 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. |
|
| 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***** |
| alertActionId |
string |
The ID of the action integration. |
testId |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****",
"alertActionId": "testId"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceExist | Resource already exist . | The resource already exists. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.