public static final class ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder comparisonOperator(String comparisonOperator)
* 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
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder effectiveInterval(String effectiveInterval)
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder escalationsLevel(String escalationsLevel)
* critical (default value): critical * warn: warning * info: information
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder noEffectiveInterval(String noEffectiveInterval)
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder silenceTime(String silenceTime)
Unit: seconds. Minimum value: 3600, which is equivalent to one hour. Default value: 86400, which is equivalent to one day. > Only one alert notification is sent during a mute period even if the metric value exceeds the alert threshold during consecutive checks.
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder statistics(String statistics)
> Set the value to Average.
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder targetList(List<ModifyGroupMonitoringAgentProcessRequest.TargetList> targetList)
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder threshold(String threshold)
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder times(String times)
> A metric triggers an alert only after the metric value reaches the threshold consecutively for the specified times.
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig.Builder webhook(String webhook)
public ModifyGroupMonitoringAgentProcessRequest.AlertConfig build()
Copyright © 2024. All rights reserved.