Enables initiative alert for a cloud service.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | EnableActiveMetricRule |
The operation that you want to perform. Set the value to EnableActiveMetricRule. |
Product | String | Yes | ecs |
The cloud service for which you want to enable initiative alert. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | The Request is not authorization. |
The error message. |
RequestId | String | F82E6667-7811-4BA0-842F-5B2DC42BBAAD |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/? Action=EnableActiveMetricRule
&Product=ecs
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<EnableActiveMetricRuleResponse>
<Code>200</Code>
<Success>true</Success>
<RequestId>55850888-9CCE-4FD5-B949-5F8947D63929</RequestId>
</EnableActiveMetricRuleResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Code" : "200",
"Success" : true,
"RequestId" : "55850888-9CCE-4FD5-B949-5F8947D63929"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
404 | ResourceNotFound | The specified resource is not found. | The error message returned because the specified resource is not found. |
For a list of error codes, see Service error codes.