public static final class PutCustomEventRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
PutCustomEventRuleRequest |
build() |
PutCustomEventRuleRequest.Builder |
contactGroups(String contactGroups)
The alert contact group that receives alert notifications.
|
PutCustomEventRuleRequest.Builder |
effectiveInterval(String effectiveInterval)
The time period during which the alert rule is effective.
|
PutCustomEventRuleRequest.Builder |
emailSubject(String emailSubject)
The subject of the alert notification email.
|
PutCustomEventRuleRequest.Builder |
eventName(String eventName)
The name of the custom event.
|
PutCustomEventRuleRequest.Builder |
groupId(String groupId)
The ID of the application group.
|
PutCustomEventRuleRequest.Builder |
level(String level)
The level of the alert.
|
PutCustomEventRuleRequest.Builder |
period(String period)
The cycle that is used to aggregate monitoring data of the custom event.
|
PutCustomEventRuleRequest.Builder |
ruleId(String ruleId)
The ID of the alert rule.
|
PutCustomEventRuleRequest.Builder |
ruleName(String ruleName)
The name of the alert rule.
|
PutCustomEventRuleRequest.Builder |
threshold(String threshold)
The alert threshold.
|
PutCustomEventRuleRequest.Builder |
webhook(String webhook)
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
public PutCustomEventRuleRequest.Builder contactGroups(String contactGroups)
The alert contact group that receives alert notifications. Separate multiple contact groups with commas (,).
This parameter is required.
example:ECS_Group
public PutCustomEventRuleRequest.Builder effectiveInterval(String effectiveInterval)
The time period during which the alert rule is effective. Valid values: 00:00 to 23:59.
example:00:00-23:59
public PutCustomEventRuleRequest.Builder emailSubject(String emailSubject)
The subject of the alert notification email.
public PutCustomEventRuleRequest.Builder eventName(String eventName)
The name of the custom event. For more information about how to obtain the event name, see DescribeCustomEventAttribute.
This parameter is required.
example:HostDown
public PutCustomEventRuleRequest.Builder groupId(String groupId)
The ID of the application group. For more information about how to obtain the group ID, see DescribeCustomEventAttribute.
The value 0 indicates that the reported custom event does not belong to any application Group.
This parameter is required.
example:7378****
public PutCustomEventRuleRequest.Builder level(String level)
The level of the alert. Valid values:
This parameter is required.
example:CRITICAL
public PutCustomEventRuleRequest.Builder period(String period)
The cycle that is used to aggregate monitoring data of the custom event. Unit: seconds. Set the value to an integral multiple of 60. Default value: 300.
example:60
public PutCustomEventRuleRequest.Builder ruleId(String ruleId)
The ID of the alert rule.
You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule.
This parameter is required.
example:CustomRuleId1
public PutCustomEventRuleRequest.Builder ruleName(String ruleName)
The name of the alert rule.
This parameter is required.
example:CustomeRule
public PutCustomEventRuleRequest.Builder threshold(String threshold)
The alert threshold.
This parameter is required.
example:99
public PutCustomEventRuleRequest.Builder webhook(String webhook)
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
example:public PutCustomEventRuleRequest build()
Copyright © 2026. All rights reserved.