Disables an event-triggered task. If your business pattern is unpredictable or prone to unforeseen traffic spikes, you can create event-triggered tasks by associating CloudMonitor metrics to effectively monitor fluctuations in your business workload. Upon detecting that the criteria for alerts, as specified in event-triggered tasks, are fulfilled, Auto Scaling promptly issues alerts and executes the scaling rules predefined within those tasks. This process occurs within the predefined effective time windows of the tasks, thereby facilitating the automatic increase or decrease of Elastic Compute Service (ECS) instances or elastic container instances within your scaling groups. Ultimately, this mechanism ensures the dynamic optimization of resources based on real-time workload demands. If you currently do not need an event-triggered task, you can call the DisableAlarm operation to disable it.
Usage notes
Before you call this operation, make sure that the event-triggered task that you want to disable is in the Normal, Alert, or Insufficient Data state.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | DisableAlarm | The operation that you want to perform. Set the value to DisableAlarm. |
RegionId | String | Yes | cn-qingdao | The region ID. |
AlarmTaskId | String | Yes | asg-bp1hvbnmkl10vll5****_f95ce797-dc2e-4bad-9618-14fee7d1**** | The ID of the event-triggered task. |
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 086EFCD4-C76F-4DC6-9EE9-0D9B711E**** | The request ID. |
Examples
Sample requests
http(s)://ess.aliyuncs.com/?Action=DisableAlarm
&RegionId=cn-qingdao
&AlarmTaskId=asg-bp1hvbnmkl10vll5****_f95ce797-dc2e-4bad-9618-14fee7d1****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DisableAlarmResponse>
<RequestId>086EFCD4-C76F-4DC6-9EE9-0D9B711E****</RequestId>
</DisableAlarmResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "086EFCD4-C76F-4DC6-9EE9-0D9B711E****"
}
Error codes
For a list of error codes, see Service error codes.