public static final class CreateAlarmRequest.Expressions.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateAlarmRequest.Expressions |
build() |
CreateAlarmRequest.Expressions.Builder |
comparisonOperator(String comparisonOperator)
The operator that you want to use to compare the metric value and the threshold in the multi-metric alert rule.
|
CreateAlarmRequest.Expressions.Builder |
metricName(String metricName)
The names of the metrics in the multi-metric alert rule.
|
CreateAlarmRequest.Expressions.Builder |
period(Integer period)
The statistical period of the metric data in the multi-metric alert rule.
|
CreateAlarmRequest.Expressions.Builder |
statistics(String statistics)
The method that you want to use to aggregate the metric data in the multi-metric alert rule.
|
CreateAlarmRequest.Expressions.Builder |
threshold(Float threshold)
The threshold of the metric value in the multi-metric alert rule.
|
public CreateAlarmRequest.Expressions.Builder comparisonOperator(String comparisonOperator)
* If the metric value is greater than or equal to the threshold, set the value to >=. * If the metric value is less than or equal to the metric threshold, set the value to <=. * If the metric value is greater than the metric threshold, set the value to >. * If the metric value is less than the metric threshold, set the value to <. Default value: >=.
public CreateAlarmRequest.Expressions.Builder metricName(String metricName)
* If you set MetricType to custom, the valid values are the metrics that you have. * If you set MetricType to system, this parameter has the following valid values: * CpuUtilization: the CPU utilization. Unit: %. * ConcurrentConnections: the number of concurrent connections. * 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](~~74854~~).
public CreateAlarmRequest.Expressions.Builder period(Integer period)
* 15 * 60 * 120 * 300 * 900 > You can set this parameter to 15 seconds only for scaling groups of the ECS type. Default value: 300.
public CreateAlarmRequest.Expressions.Builder statistics(String statistics)
* Average: the average value. * Minimum: the minimum value * Maximum: the maximum value Default value: Average.
public CreateAlarmRequest.Expressions.Builder threshold(Float threshold)
public CreateAlarmRequest.Expressions build()
Copyright © 2024. All rights reserved.