public static final class ModifyAlarmRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyAlarmRequest.Builder |
alarmActions(List<String> alarmActions)
The list of unique identifiers of the scaling rules that are associated with the event-triggered task.
|
ModifyAlarmRequest.Builder |
alarmTaskId(String alarmTaskId)
The ID of the event-triggered task.
|
ModifyAlarmRequest |
build() |
ModifyAlarmRequest.Builder |
comparisonOperator(String comparisonOperator)
The operator that is used to compare the metric value and the threshold.
|
ModifyAlarmRequest.Builder |
description(String description)
The description of the event-triggered task.
|
ModifyAlarmRequest.Builder |
dimensions(List<ModifyAlarmRequest.Dimensions> dimensions)
Details of the dimensions.
|
ModifyAlarmRequest.Builder |
effective(String effective)
The effective period of the event-triggered task.
|
ModifyAlarmRequest.Builder |
evaluationCount(Integer evaluationCount)
The number of times that the threshold must be reached before a scaling rule can be executed.
|
ModifyAlarmRequest.Builder |
expressions(List<ModifyAlarmRequest.Expressions> expressions)
The expressions that are specified in the multi-metric alert rule.
|
ModifyAlarmRequest.Builder |
expressionsLogicOperator(String expressionsLogicOperator)
The relationship between the trigger conditions in the multi-metric alert rule.
|
ModifyAlarmRequest.Builder |
groupId(Integer groupId)
The ID of the application group to which the custom metric belongs.
|
ModifyAlarmRequest.Builder |
metricName(String metricName)
The name of the metric.
|
ModifyAlarmRequest.Builder |
metricType(String metricType)
The type of the metric.
|
ModifyAlarmRequest.Builder |
name(String name)
The name of the event-triggered task.
|
ModifyAlarmRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyAlarmRequest.Builder |
period(Integer period)
The period of time during which statistics about the metric is collected.
|
ModifyAlarmRequest.Builder |
regionId(String regionId)
The region ID of the event-triggered task.
|
ModifyAlarmRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyAlarmRequest.Builder |
statistics(String statistics)
The method that is used to aggregate statistics for the metric.
|
ModifyAlarmRequest.Builder |
threshold(Float threshold)
The thresholds of the metric values in the multi-metric alert rule.
|
public ModifyAlarmRequest.Builder alarmActions(List<String> alarmActions)
public ModifyAlarmRequest.Builder alarmTaskId(String alarmTaskId)
public ModifyAlarmRequest.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 threshold, set the value to `<=`. * If the metric value is greater than the threshold, set the value to `>`. * If the metric value is less than the threshold, set the value to `<`.
public ModifyAlarmRequest.Builder description(String description)
public ModifyAlarmRequest.Builder dimensions(List<ModifyAlarmRequest.Dimensions> dimensions)
public ModifyAlarmRequest.Builder effective(String effective)
This parameter follows the cron expression format. The default format is `X X X X X ?`, in which: * X: a placeholder for a field, which represents seconds, minutes, hours, days, and months in sequence. X can be a definite value or a special character that has logical meaning. For information about the valid values of X, see [Cron expression](~~25907~~). * ?: No value is specified. > By default, the value of this parameter is specified in **UTC+8**. You can specify the time zone in the `TZ=+yy` format before a cron expression. y indicates the time zone. For example, `TZ=+00 * * 1-2 * * ?` specifies that the event-triggered task is in effect between 01:00 and 02:59 (UTC+0) every day. Examples: * ` * * * * * ? `: The event-triggered task is in effect all the time. * ` * * 17-18 * * ? `: The event-triggered task is in effect between 17:00 and 18:59 (UTC+8) every day. * `TZ=+00 * * 1-2 * * ?`: The event-triggered task is in effect between 01:00 and 02:59 (UTC+0) every day.
public ModifyAlarmRequest.Builder evaluationCount(Integer evaluationCount)
public ModifyAlarmRequest.Builder expressions(List<ModifyAlarmRequest.Expressions> expressions)
public ModifyAlarmRequest.Builder expressionsLogicOperator(String expressionsLogicOperator)
* `&&`: An alert is triggered only if all metrics in the multi-metric alert rule meet the 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 if one of the metrics in the multi-metric alert rule meets the trigger condition. Default value: `&&`.
public ModifyAlarmRequest.Builder groupId(Integer groupId)
public ModifyAlarmRequest.Builder metricName(String metricName)
* If you set the MetricType parameter to custom, the valid values are your custom metrics. * If you set the MetricType parameter to system, the MetricName parameter has the following valid values: * CpuUtilization: the CPU utilization of an ECS instance. Unit: %. * IntranetTx: the outbound traffic over the internal network from an ECS instance. Unit: KB/min. * IntranetRx: the inbound traffic over the Internet to an ECS instance that resides in a virtual private cloud (VPC). Unit: KB/min. * VpcInternetTx: the outbound traffic over the Internet from an ECS instance that resides in a VPC. Unit: KB/min. * VpcInternetRx: the inbound traffic over the Internet to an ECS instance that resides in a VPC. Unit: KB/min. * SystemDiskReadBps: the number of bytes read from the system disk used by an ECS instance per second. * SystemDiskWriteBps: the number of bytes written to the system disk used by an ECS instance per second. * SystemDiskReadOps: the number of read operations on the system disk used by an ECS instance per second. * SystemDiskWriteOps: the number of write operations on the system disk used by an ECS instance per second. * CpuUtilizationAgent: the CPU utilization of an agent. Unit: %. * GpuMemoryFreeUtilizationAgent: the percentage of idle GPU memory of an agent. * GpuMemoryUtilizationAgent: the GPU memory usage of an agent. Unit: %. * MemoryUtilization: the memory usage of an agent. Unit: %. * LoadAverage: the average system load of an agent. * TcpConnection: the total number of TCP connections of an agent. * TcpConnection: the number of established TCP connections of an agent. * PackagesNetOut: the number of packets that are sent by the internal network interface controller (NIC) used by an agent. * PackagesNetIn: the number of packets that are received by the internal NIC used by an agent. * EciPodCpuUtilization: the CPU utilization of an elastic container instance. Unit: %. * EciPodMemoryUtilization: the memory usage of an elastic container instance. Unit: %. For more information, see [Event-triggered task for system monitoring](~~74854~~).
public ModifyAlarmRequest.Builder metricType(String metricType)
* system: system metrics of CloudMonitor * custom: custom metrics that are reported to CloudMonitor
public ModifyAlarmRequest.Builder name(String name)
public ModifyAlarmRequest.Builder ownerId(Long ownerId)
public ModifyAlarmRequest.Builder period(Integer period)
* 15 * 60 * 120 * 300 * 900 > If your scaling group is of the ECS type and uses CloudMonitor metrics, you can set the Period parameter to 15. In other cases, you can set the Period parameter to 60, 120, 300, or 900. In most cases, the name of a CloudMonitor metric contains Agent.
public ModifyAlarmRequest.Builder regionId(String regionId)
public ModifyAlarmRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyAlarmRequest.Builder statistics(String statistics)
* Average * Minimum * Maximum
public ModifyAlarmRequest.Builder threshold(Float threshold)
public ModifyAlarmRequest build()
Copyright © 2024. All rights reserved.