public static final class PutCustomEventRuleRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
PutCustomEventRuleRequest |
build() |
PutCustomEventRuleRequest.Builder |
contactGroups(String contactGroups)
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
PutCustomEventRuleRequest.Builder |
effectiveInterval(String effectiveInterval)
The cycle that is used to aggregate monitoring data of the custom event.
|
PutCustomEventRuleRequest.Builder |
emailSubject(String emailSubject)
The alert threshold.
|
PutCustomEventRuleRequest.Builder |
eventName(String eventName)
The alert contact group that receives alert notifications.
|
PutCustomEventRuleRequest.Builder |
groupId(String groupId)
The ID of the alert rule.
|
PutCustomEventRuleRequest.Builder |
level(String level)
The HTTP status code.
|
PutCustomEventRuleRequest.Builder |
period(String period)
The subject of the alert notification email.
|
PutCustomEventRuleRequest.Builder |
ruleId(String ruleId)
The name of the alert rule.
|
PutCustomEventRuleRequest.Builder |
ruleName(String ruleName)
The name of the custom event.
|
PutCustomEventRuleRequest.Builder |
threshold(String threshold)
The level of the alert.
|
PutCustomEventRuleRequest.Builder |
webhook(String webhook)
The time period during which the alert rule is effective.
|
public PutCustomEventRuleRequest.Builder contactGroups(String contactGroups)
public PutCustomEventRuleRequest.Builder effectiveInterval(String effectiveInterval)
public PutCustomEventRuleRequest.Builder emailSubject(String emailSubject)
public PutCustomEventRuleRequest.Builder eventName(String eventName)
public PutCustomEventRuleRequest.Builder groupId(String groupId)
> You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule.
public PutCustomEventRuleRequest.Builder level(String level)
> The value 200 indicates that the call was successful.
public PutCustomEventRuleRequest.Builder period(String period)
public PutCustomEventRuleRequest.Builder ruleId(String ruleId)
public PutCustomEventRuleRequest.Builder ruleName(String ruleName)
public PutCustomEventRuleRequest.Builder threshold(String threshold)
* CRITICAL: critical issue * WARN: warning * INFO: information
public PutCustomEventRuleRequest.Builder webhook(String webhook)
public PutCustomEventRuleRequest build()
Copyright © 2023. All rights reserved.