public static final class CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder extends Object
构造器和说明 |
---|
Builder() |
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder alertCheckType(String alertCheckType)
* STATIC: a static threshold value. * CUSTOM: a custom PromQL statement.
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder alertGroup(Long alertGroup)
* \-1: custom PromQL * 1: Kubernetes load * 15: Kubernetes node
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder alertId(Float alertId)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder alertName(String alertName)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder alertRuleContent(CreateOrUpdateAlertRuleResponseBody.AlertRuleContent alertRuleContent)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder alertStatus(String alertStatus)
* RUNNING * STOPPED * PAUSED > The PAUSED status indicates that the alert rule is abnormal and is actively paused by the system. The alert rule may be paused because that it is not unique or the associated cluster has been deleted.
public CreateOrUpdateAlertRuleResponseBody.AlertRule.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: alert rule for Prometheus Service
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder annotations(List<CreateOrUpdateAlertRuleResponseBody.Annotations> annotations)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder autoAddNewApplication(Boolean autoAddNewApplication)
* `true`: enables the health check feature. * `false`: disables the automatic backup feature.
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder clusterId(String clusterId)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder createdTime(Long createdTime)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder duration(String duration)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder extend(String extend)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder filters(CreateOrUpdateAlertRuleResponseBody.Filters filters)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder labels(List<CreateOrUpdateAlertRuleResponseBody.Labels> labels)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.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 CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder message(String message)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder metricsType(String metricsType)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder notifyMode(String notifyMode)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder notifyStrategy(String notifyStrategy)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder pids(List<String> pids)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder promQL(String promQL)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder regionId(String regionId)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder tags(List<CreateOrUpdateAlertRuleResponseBody.Tags> tags)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder updatedTime(Long updatedTime)
public CreateOrUpdateAlertRuleResponseBody.AlertRule.Builder userId(String userId)
public CreateOrUpdateAlertRuleResponseBody.AlertRule build()
Copyright © 2024. All rights reserved.