public static class CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
comparisonOperator
The operator that is used to compare the metric value with the threshold.
|
String |
effectiveInterval
The time period during which the alert rule is effective.
|
String |
escalationsLevel
The alert level.
|
String |
noEffectiveInterval
This parameter is deprecated.
|
String |
silenceTime
The mute period during which new alert notifications are not sent even if the trigger conditions are met.
|
String |
statistics
The statistical method for alerts.
|
List<CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList> |
targetList
The alert triggers.
|
String |
threshold
The alert threshold.
|
String |
times
The number of times for which the threshold can be consecutively exceeded.
|
String |
webhook
The callback URL.
|
| 构造器和说明 |
|---|
CreateGroupMonitoringAgentProcessRequestAlertConfig() |
@NameInMap(value="ComparisonOperator") public String comparisonOperator
The operator that is used to compare the metric value with the threshold. Valid values:
* GreaterThanOrEqualToThreshold: greater than or equal to the threshold
* GreaterThanThreshold: greater than the threshold
* LessThanOrEqualToThreshold: less than or equal to the threshold
* LessThanThreshold: less than the threshold
* NotEqualToThreshold: not equal to the threshold
* GreaterThanYesterday: greater than the metric value at the same time yesterday
* LessThanYesterday: less than the metric value at the same time yesterday
* GreaterThanLastWeek: greater than the metric value at the same time last week
* LessThanLastWeek: less than the metric value at the same time last week
* GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle
* LessThanLastPeriod: less than the metric value in the last monitoring cycle
Valid values of N: 1 to 3.
@NameInMap(value="EffectiveInterval") public String effectiveInterval
The time period during which the alert rule is effective.
Valid values of N: 1 to 3.
@NameInMap(value="EscalationsLevel") public String escalationsLevel
The alert level. Valid values:
* critical (default): critical
* warn: warning
* info: information
Valid values of N: 1 to 3.
@NameInMap(value="NoEffectiveInterval") public String noEffectiveInterval
This parameter is deprecated.
@NameInMap(value="SilenceTime") public String silenceTime
The mute period during which new alert notifications are not sent even if the trigger conditions are met. Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day.
Valid values of N: 1 to 3.
> Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times.
@NameInMap(value="Statistics") public String statistics
The statistical method for alerts.
Valid values of N: 1 to 3.
> Set the value to Average.
@NameInMap(value="TargetList") public List<CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList> targetList
The alert triggers.
@NameInMap(value="Threshold") public String threshold
The alert threshold.
Valid values of N: 1 to 3.
Unit: cores.
@NameInMap(value="Times") public String times
The number of times for which the threshold can be consecutively exceeded. Default value: 3.
Valid values of N: 1 to 3.
> An alert is triggered only if the number of times for which the threshold can be consecutively exceeded is reached.
@NameInMap(value="Webhook") public String webhook
The callback URL.
Valid values of N: 1 to 3.
public CreateGroupMonitoringAgentProcessRequestAlertConfig()
public static CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig build(Map<String,?> map) throws Exception
Exceptionpublic CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setComparisonOperator(String comparisonOperator)
public String getComparisonOperator()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setEffectiveInterval(String effectiveInterval)
public String getEffectiveInterval()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setEscalationsLevel(String escalationsLevel)
public String getEscalationsLevel()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setNoEffectiveInterval(String noEffectiveInterval)
public String getNoEffectiveInterval()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setSilenceTime(String silenceTime)
public String getSilenceTime()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setStatistics(String statistics)
public String getStatistics()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setTargetList(List<CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList> targetList)
public List<CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfigTargetList> getTargetList()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setThreshold(String threshold)
public String getThreshold()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setTimes(String times)
public String getTimes()
public CreateGroupMonitoringAgentProcessRequest.CreateGroupMonitoringAgentProcessRequestAlertConfig setWebhook(String webhook)
public String getWebhook()
Copyright © 2024. All rights reserved.