public static final class ListAlertsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ListAlertsRequest.Builder |
alertName(String alertName)
The name of the alert rule.
|
ListAlertsRequest |
build() |
ListAlertsRequest.Builder |
dispatchRuleId(Long dispatchRuleId)
The ID of the notification policy.
|
ListAlertsRequest.Builder |
endTime(String endTime)
The end time of the alert sending history that you want to query.
|
ListAlertsRequest.Builder |
integrationType(String integrationType)
The integration type.
|
ListAlertsRequest.Builder |
owner(String owner)
Owner.
|
ListAlertsRequest.Builder |
page(Long page)
The number of the page to return.
|
ListAlertsRequest.Builder |
regionId(String regionId)
The ID of the region.
|
ListAlertsRequest.Builder |
severity(String severity)
The severity level of the alert.
|
ListAlertsRequest.Builder |
showActivities(Boolean showActivities)
Specifies whether to query the activities that correspond to alerts.
|
ListAlertsRequest.Builder |
showEvents(Boolean showEvents)
Specifies whether to query the events that correspond to alerts.
|
ListAlertsRequest.Builder |
size(Long size)
The number of alerts to return on each page.
|
ListAlertsRequest.Builder |
startTime(String startTime)
The start time of the alert sending history that you want to query.
|
ListAlertsRequest.Builder |
state(Long state)
The status of the alert.
|
public ListAlertsRequest.Builder alertName(String alertName)
public ListAlertsRequest.Builder dispatchRuleId(Long dispatchRuleId)
public ListAlertsRequest.Builder endTime(String endTime)
public ListAlertsRequest.Builder integrationType(String integrationType)
* ARMS * CLOUD_MONITOR * MSE * ARMS_CLOUD_DIALTEST * PROMETHEUS * LOG_SERVICE * CUSTOM * ARMS_PROMETHEUS * ARMS_APP_MON * ARMS_FRONT_MON * ARMS_CUSTOM * XTRACE * GRAFANA * ZABBIX * SKYWALKING * EVENT_BRIDGE * NAGIOS * OPENFALCON * ARMS_INSIGHTS
public ListAlertsRequest.Builder owner(String owner)
public ListAlertsRequest.Builder page(Long page)
public ListAlertsRequest.Builder regionId(String regionId)
public ListAlertsRequest.Builder severity(String severity)
public ListAlertsRequest.Builder showActivities(Boolean showActivities)
* `false` (default value): The activities are not queried. * `true`: The activities in the last three days are queried.
public ListAlertsRequest.Builder showEvents(Boolean showEvents)
* `false` (default value): The events are not queried. * `true`: The events are queried.
public ListAlertsRequest.Builder size(Long size)
public ListAlertsRequest.Builder startTime(String startTime)
public ListAlertsRequest.Builder state(Long state)
* 0: The alert is pending. * 1: The alert is being handled. * 2: The alert is handled.
public ListAlertsRequest build()
Copyright © 2024. All rights reserved.