public static final class GetAlertRulesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
GetAlertRulesRequest.Builder |
alertIds(String alertIds)
The unique IDs of alert rules.
|
GetAlertRulesRequest.Builder |
alertNames(String alertNames)
The names of alert rules.
|
GetAlertRulesRequest.Builder |
alertStatus(String alertStatus)
The status of the alert rule.
|
GetAlertRulesRequest.Builder |
alertType(String alertType)
The type of the alert rule.
|
GetAlertRulesRequest |
build() |
GetAlertRulesRequest.Builder |
clusterId(String clusterId)
The ID of the monitored cluster.
|
GetAlertRulesRequest.Builder |
page(Long page)
The number of the page to return.
|
GetAlertRulesRequest.Builder |
productCode(String productCode)
You do not need to configure this parameter.
|
GetAlertRulesRequest.Builder |
regionId(String regionId)
The region ID.
|
GetAlertRulesRequest.Builder |
size(Long size)
The number of alert rules to return on each page.
|
GetAlertRulesRequest.Builder |
tags(List<GetAlertRulesRequest.Tags> tags)
The list of tags.
|
public GetAlertRulesRequest.Builder alertIds(String alertIds)
* If you do not specify this parameter, the API operation does not filter alert rules based on their IDs. * If you specify this parameter, the API operation returns only the information of the specified alert rules. Other filter conditions also take effect. > When you call the GetAlertRules operation, you can specify other request parameters to obtain the AlertIds parameter from the response. Then, you can specify the AlertIds parameter to query the specified alert rules.
public GetAlertRulesRequest.Builder alertNames(String alertNames)
* If you do not specify this parameter, the API operation does not filter alert rules based on their names. * If you specify this parameter, the API operation returns only the information of the specified alert rules. Other filter conditions also take effect.
public GetAlertRulesRequest.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 GetAlertRulesRequest.Builder alertType(String alertType)
* APPLICATION_MONITORING_ALERT_RULE: alert rule for Application Monitoring * BROWSER_MONITORING_ALERT_RULE: an alert rule for Browser Monitoring. * PROMETHEUS_MONITORING_ALERT_RULE: alert rule for Managed Service for Prometheus.
public GetAlertRulesRequest.Builder clusterId(String clusterId)
public GetAlertRulesRequest.Builder page(Long page)
public GetAlertRulesRequest.Builder productCode(String productCode)
public GetAlertRulesRequest.Builder regionId(String regionId)
public GetAlertRulesRequest.Builder size(Long size)
public GetAlertRulesRequest.Builder tags(List<GetAlertRulesRequest.Tags> tags)
public GetAlertRulesRequest build()
Copyright © 2024. All rights reserved.