public static final class DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder alertId(Long alertId)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder alertName(String alertName)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder annotations(List<DescribePrometheusAlertRuleResponseBody.Annotations> annotations)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder clusterId(String clusterId)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder dispatchRuleId(Long dispatchRuleId)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder duration(String duration)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder expression(String expression)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder labels(List<DescribePrometheusAlertRuleResponseBody.Labels> labels)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder message(String message)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder notifyType(String notifyType)
* `ALERT_MANAGER`: Alert notifications are sent by Operation Center. * `DISPATCH_RULE`: Alert notifications are sent based on the specified notification policy.
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder status(Integer status)
* `1`: The alert rule is enabled. * `0`: The alert rule is disabled.
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule.Builder type(String type)
public DescribePrometheusAlertRuleResponseBody.PrometheusAlertRule build()
Copyright © 2024. All rights reserved.