| object | | |
PageSize | integer | The number of entries returned per page. | 10 |
RequestId | string | | 871C7C53-34A4-45AA-8C14-4B72FA6A**** |
PageNumber | integer | The page number of the returned page. | 1 |
TotalCount | integer | The total number of event-triggered tasks. | 2 |
AlarmList | array<object> | The event-triggered tasks. | |
Alarm | object | The event-triggered task. | |
AlarmTaskId | string | The ID of the event-triggered task. | asg-bp1hvbnmkl10vll5****_f95ce797-dc2e-4bad-9618-14fee7d1**** |
MetricName | string | The metric name. Valid values:
- CpuUtilization: the CPU utilization of an Elastic Compute Service (ECS) instance. Unit: %.
- ConcurrentConnections: the number of current connections to an ECS instance.
- IntranetTx: the outbound traffic over an internal network. Unit: KB/min.
- IntranetRx: the inbound traffic over an internal network. Unit: KB/min.
- VpcInternetTx: the outbound traffic over a virtual private cloud (VPC). Unit: KB/min.
- VpcInternetRx: the inbound traffic over a VPC. Unit: KB/min.
- SystemDiskReadBps: the number of bytes read from the system disk per second.
- SystemDiskWriteBps: the number of bytes written to the system disk per second.
- SystemDiskReadOps: the read IOPS of the system disk. Unit: counts/s.
- SystemDiskWriteOps: the write IOPS of the system disk. Unit: counts/s.
- CpuUtilizationAgent: the CPU utilization. Unit: %.
- GpuUtilizationAgent: the GPU utilization. Unit: %.
- GpuMemoryFreeUtilizationAgent: the idle GPU memory usage. Unit: %.
- GpuMemoryUtilizationAgent: the GPU memory usage. Unit: %.
- MemoryUtilization: the memory usage. Unit: %.
- LoadAverage: the average system load.
- TcpConnection: the total number of TCP connections.
- TcpConnection: the number of established TCP connections.
- PackagesNetOut: the number of packets sent by the internal NIC. Unit: counts/s.
- PackagesNetIn: the number of packets received by the internal NIC. Unit: counts/s.
- PackagesNetOut: the number of packets sent by the public NIC. Unit: counts/s.
- PackagesNetIn: the number of packets received by the public NIC. Unit: counts/s.
- EciPodCpuUtilization: the CPU utilization. Unit: %.
- EciPodMemoryUtilization: the memory usage. Unit: %.
- LoadBalancerRealServerAverageQps: the queries per second (QPS) of an instance.
For more information, see Event-triggered tasks of the system monitoring type. | CpuUtilization |
EvaluationCount | integer | The number of consecutive times that the threshold must be reached before a scaling rule is executed. For example, if you set this parameter to 3, the average CPU utilization must reach or exceed 80% three times in a row before a scaling rule is executed. | 3 |
State | string | The status of the event-triggered task. Valid values:
- ALARM: The alert condition is met and an alert is triggered.
- OK: The alert condition is not met.
- INSUFFICIENT_DATA: Auto Scaling cannot determine whether the alert condition is met due to insufficient data.
| ALARM |
Period | integer | The statistical period of the metric data. Unit: seconds. Valid values:
Note
You can set the value of this parameter to 15 Seconds only for scaling groups of the ECS type.
| 300 |
ScalingGroupId | string | The ID of the scaling group to which the event-triggered task is associated. | asg-bp18p2yfxow2dloq**** |
ComparisonOperator | string | The operator that is used to compare the metric value and the metric threshold.
- Valid value if the metric value is greater than or equal to the threshold: >=.
- Valid value if the metric value is less than or equal to the threshold: <=.
- Valid value if the metric value is greater than the threshold: >.
- Valid value if the metric value is less than the threshold: <.
| >= |
Effective | string | The effective period of the event-triggered task. | Test |
Description | string | The description of the event-triggered task. | Test alarm task. |
MetricType | string | The metric type. Valid values:
- system: system metrics of CloudMonitor
- custom: custom metrics that are reported to CloudMonitor.
| system |
Name | string | The name of the event-triggered task. | TestAlarmTask |
Threshold | float | The threshold of the metric. If the threshold is reached the specified number of times within the statistical period, a scaling rule is executed. | 80.0 |
Enable | boolean | Indicates whether the event-triggered task feature is enabled. Valid values:
| true |
Statistics | string | The method that is used to aggregate the metric data. Valid values:
- Average: the average value
- Minimum: the minimum value
- Maximum: the maximum value
| Average |
Dimensions | array<object> | | |
Dimension | object | Details of the dimensions. | |
DimensionKey | string | The dimension key of the metric. Valid values:
- user_id: the ID of your Alibaba Cloud account.
- scaling_group: the scaling group that is monitored by the event-triggered task.
- device: the NIC type.
- state: the status of the TCP connection.
| device |
DimensionValue | string | The dimension value of the metric. The value of DimensionValue varies based on the value of DimensionKey.
-
If you set DimensionKey to user_id , the system specifies the value of DimensionValue.
-
If you set DimensionKey to scaling_group , the system specifies the value of DimensionValue.
-
If you set DimensionKey to device , you can set DimensionValue to eth0 or eth1.
- For instances of the classic network type, eth0 indicates the internal NIC. Only one eth0 NIC exists on each instance that resides in VPCs.
- For instances of the classic network type, eth1 indicates the public NIC.
-
If you set DimensionKey to state , you can set DimensionValue to TCP_TOTAL or ESTABLISHED.
- TCP_TOTAL indicates the total number of TCP connections.
- ESTABLISHED indicates the number of TCP connections that are established.
| eth0 |
AlarmActions | array | The unique identifiers of the scaling rules that are associated with the event-triggered task. | |
AlarmAction | string | The unique identifier of the scaling rule that is associated with the event-triggered task. | ari:acs:ess:cn-hangzhou:1406926474****:scalingrule/asr-bp163l21e07uh**** |
Expressions | array<object> | The alert conditions of the multi-metric alert rule. | |
Expression | object | The expressions that are specified in the multi-metric alert rule. | |
MetricName | string | The name of the metric that is specified in the multi-metric alert rule. Valid values:
- CpuUtilization: the CPU utilization of an ECS instance. Unit: %.
- ConcurrentConnections: the number of current connections to an ECS instance.
- IntranetTx: the outbound traffic over an internal network. Unit: KB/min.
- IntranetRx: the inbound traffic over an internal network. Unit: KB/min.
- VpcInternetTx: the outbound traffic over a VPC. Unit: KB/min.
- VpcInternetRx: the inbound traffic over a VPC. Unit: KB/min.
- SystemDiskReadBps: the number of bytes read from the system disk per second.
- SystemDiskWriteBps: the number of bytes written to the system disk per second.
- SystemDiskReadOps: the read IOPS of the system disk. Unit: counts/s.
- SystemDiskWriteOps: the write IOPS of the system disk. Unit: counts/s.
- CpuUtilizationAgent: the CPU utilization. Unit: %.
- GpuUtilizationAgent: the GPU utilization. Unit: %.
- GpuMemoryFreeUtilizationAgent: the idle GPU memory usage. Unit: %.
- GpuMemoryUtilizationAgent: the GPU memory usage. Unit: %.
- MemoryUtilization: the memory usage. Unit: %.
- LoadAverage: the average system load.
- TcpConnection: the total number of TCP connections.
- TcpConnection: the number of established TCP connections.
- PackagesNetOut: the number of packets sent by the internal NIC. Unit: counts/s.
- PackagesNetIn: the number of packets received by the internal NIC. Unit: counts/s.
- PackagesNetOut: the number of packets sent by the public NIC. Unit: counts/s.
- PackagesNetIn: the number of packets received by the public NIC. Unit: counts/s.
- EciPodCpuUtilization: the CPU utilization. Unit: %.
- EciPodMemoryUtilization: the memory usage. Unit: %.
- LoadBalancerRealServerAverageQps: the QPS of an instance.
For more information, see Event-triggered tasks of the system monitoring type. | CpuUtilization |
ComparisonOperator | string | The operator that is used to compare the metric value and the threshold.
- Valid value if the metric value is greater than or equal to the threshold: >=.
- Valid value if the metric value is less than or equal to the threshold: <=.
- Valid value if the metric value is greater than the threshold: >.
- Valid value if the metric value is less than the threshold: <.
| >= |
Period | integer | The statistical period of the metric data in the multi-metric alert rule. Unit: seconds. Valid values:
Note
If your scaling group is of the ECS type and the event-triggered task that is associated with your scaling group monitors CloudMonitor metrics, you can set Period to 15. In most cases, the name of a CloudMonitor metric contains Agent.
| 900 |
Statistics | string | The method that is used to aggregate statistics about the metrics in the multi-metric alert rule. Valid values:
- Average: the average value
- Minimum: the minimum value
- Maximum: the maximum value
| Average |
Threshold | float | The threshold of the metric value. If the threshold is reached the specified number of times within the specified period, a scaling rule is executed. | 40.0 |
ExpressionsLogicOperator | string | The relationship between the trigger conditions that are specified in the multi-metric alert rule. Valid values:
&& : An alert is triggered only if all metrics in the multi-metric alert rule meet their trigger conditions. In this case, an alert is triggered only if the results of all trigger conditions that are specified in the multi-metric alert rule are true .
|| : An alert is triggered only if one of the metrics in the multi-metric alert rule meets its trigger condition.
| && |