public static final class ApplyMetricRuleTemplateRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ApplyMetricRuleTemplateRequest.Builder |
applyMode(String applyMode)
The error message returned.
|
ApplyMetricRuleTemplateRequest |
build() |
ApplyMetricRuleTemplateRequest.Builder |
enableEndTime(Long enableEndTime)
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
ApplyMetricRuleTemplateRequest.Builder |
enableStartTime(Long enableStartTime)
The mode in which the alert template is applied.
|
ApplyMetricRuleTemplateRequest.Builder |
groupId(Long groupId)
The beginning of the time period during which the alert rule is effective.
|
ApplyMetricRuleTemplateRequest.Builder |
notifyLevel(Long notifyLevel)
The response code.
|
ApplyMetricRuleTemplateRequest.Builder |
silenceTime(Long silenceTime)
The ID of the alert template.
|
ApplyMetricRuleTemplateRequest.Builder |
templateIds(String templateIds)
The alert notification method.
|
ApplyMetricRuleTemplateRequest.Builder |
webhook(String webhook)
The ID of the request.
|
public ApplyMetricRuleTemplateRequest.Builder applyMode(String applyMode)
public ApplyMetricRuleTemplateRequest.Builder enableEndTime(Long enableEndTime)
public ApplyMetricRuleTemplateRequest.Builder enableStartTime(Long enableStartTime)
* GROUP_INSTANCE_FIRST: The metrics in the application group take precedence. If a metric specified in the alert template does not exist in the application group, the system does not generate an alert rule for the metric based on the alert template. * ALARM_TEMPLATE_FIRST: The metrics specified in the alert template take precedence. If a metric specified in the alert template does not exist in the application group, the system still generates an alert rule for the metric based on the alert template.
public ApplyMetricRuleTemplateRequest.Builder groupId(Long groupId)
public ApplyMetricRuleTemplateRequest.Builder notifyLevel(Long notifyLevel)
> The HTTP status code 200 indicates that the call succeeds.
public ApplyMetricRuleTemplateRequest.Builder silenceTime(Long silenceTime)
For more information about how to query the IDs of alert templates, see [DescribeMetricRuleTemplateList](~~114982~~).
public ApplyMetricRuleTemplateRequest.Builder templateIds(String templateIds)
Set the value to 4. A value of 4 indicates that alert notifications are sent by using TradeManager and DingTalk chatbots.
public ApplyMetricRuleTemplateRequest.Builder webhook(String webhook)
public ApplyMetricRuleTemplateRequest build()
Copyright © 2023. All rights reserved.