public static final class GetAlertRulesResponseBody.AlertRules.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public GetAlertRulesResponseBody.AlertRules.Builder alertCheckType(String alertCheckType)
* STATIC: static threshold * CUSTOM: custom PromQL
public GetAlertRulesResponseBody.AlertRules.Builder alertGroup(Long alertGroup)
* \-1: custom PromQL * 1: Kubernetes load * 15: Kubernetes node
public GetAlertRulesResponseBody.AlertRules.Builder alertId(Long alertId)
public GetAlertRulesResponseBody.AlertRules.Builder alertName(String alertName)
public GetAlertRulesResponseBody.AlertRules.Builder alertRuleContent(GetAlertRulesResponseBody.AlertRuleContent alertRuleContent)
public GetAlertRulesResponseBody.AlertRules.Builder alertStatus(String alertStatus)
* RUNNING * STOPPED * PAUSED > The PAUSED state indicates that the alert rule is abnormal and has been suspended. This may be because the specified threshold value is excessively large, or the associated cluster has been deleted.
public GetAlertRulesResponseBody.AlertRules.Builder alertType(String alertType)
* APPLICATION_MONITORING_ALERT_RULE: alert rule for Application Monitoring * BROWSER_MONITORING_ALERT_RULE: alert rule for Browser Monitoring * PROMETHEUS_MONITORING_ALERT_RULE: Prometheus alert rule
public GetAlertRulesResponseBody.AlertRules.Builder annotations(List<GetAlertRulesResponseBody.Annotations> annotations)
public GetAlertRulesResponseBody.AlertRules.Builder autoAddNewApplication(Boolean autoAddNewApplication)
* `true`: yes * `false`: no
public GetAlertRulesResponseBody.AlertRules.Builder clusterId(String clusterId)
public GetAlertRulesResponseBody.AlertRules.Builder createdTime(Long createdTime)
public GetAlertRulesResponseBody.AlertRules.Builder duration(String duration)
public GetAlertRulesResponseBody.AlertRules.Builder extend(String extend)
> For existing Application Monitoring alert rules, the fields contain information such as contacts, alert template, and notification content.
public GetAlertRulesResponseBody.AlertRules.Builder filters(GetAlertRulesResponseBody.Filters filters)
public GetAlertRulesResponseBody.AlertRules.Builder labels(List<GetAlertRulesResponseBody.Labels> labels)
public GetAlertRulesResponseBody.AlertRules.Builder level(String level)
* P1: Alert notifications are sent for major issues that affect the availability of core business, have a huge impact, and may lead to serious consequences. * P2: Alert notifications are sent for service errors that affect the system availability with relatively limited impact. * P3: Alert notifications are sent for issues that may cause service errors or negative effects, or alert notifications for services that are relatively less important. * P4: Alert notifications are sent for low-priority issues that do not affect your business. * Default: Alert notifications are sent regardless of alert levels.
public GetAlertRulesResponseBody.AlertRules.Builder message(String message)
public GetAlertRulesResponseBody.AlertRules.Builder metricsType(String metricsType)
public GetAlertRulesResponseBody.AlertRules.Builder notifyStrategy(String notifyStrategy)
public GetAlertRulesResponseBody.AlertRules.Builder pids(List<String> pids)
public GetAlertRulesResponseBody.AlertRules.Builder promQL(String promQL)
public GetAlertRulesResponseBody.AlertRules.Builder regionId(String regionId)
public GetAlertRulesResponseBody.AlertRules.Builder tags(List<GetAlertRulesResponseBody.Tags> tags)
public GetAlertRulesResponseBody.AlertRules.Builder updatedTime(Long updatedTime)
public GetAlertRulesResponseBody.AlertRules.Builder userId(String userId)
public GetAlertRulesResponseBody.AlertRules build()
Copyright © 2024. All rights reserved.