public static final class DescribeAlertLogCountRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeAlertLogCountRequest |
build() |
DescribeAlertLogCountRequest.Builder |
contactGroup(String contactGroup)
The alert group.
|
DescribeAlertLogCountRequest.Builder |
endTime(Long endTime)
The end timestamp of the alert logs to be queried.
|
DescribeAlertLogCountRequest.Builder |
eventType(String eventType)
The type of the alert event.
|
DescribeAlertLogCountRequest.Builder |
groupBy(String groupBy)
The dimension based on which data is aggregated.
|
DescribeAlertLogCountRequest.Builder |
groupId(String groupId)
The ID of the application group.
|
DescribeAlertLogCountRequest.Builder |
lastMin(String lastMin)
The statistical period of alert logs.
|
DescribeAlertLogCountRequest.Builder |
level(String level)
The level and notification method of the alert.
|
DescribeAlertLogCountRequest.Builder |
metricName(String metricName)
The name of the metric.
|
DescribeAlertLogCountRequest.Builder |
namespace(String namespace)
The namespace of the cloud service.
|
DescribeAlertLogCountRequest.Builder |
pageNumber(Integer pageNumber)
The dimension based on which data is aggregated.
|
DescribeAlertLogCountRequest.Builder |
pageSize(Integer pageSize)
The number of entries to return on each page.
|
DescribeAlertLogCountRequest.Builder |
product(String product)
The abbreviation of the service name.
|
DescribeAlertLogCountRequest.Builder |
ruleId(String ruleId)
The ID of the alert rule.
|
DescribeAlertLogCountRequest.Builder |
ruleName(String ruleName)
The name of the alert rule.
|
DescribeAlertLogCountRequest.Builder |
searchKey(String searchKey)
The keyword based on which the alert logs to be counted are searched.
|
DescribeAlertLogCountRequest.Builder |
sendStatus(String sendStatus)
The status of the alert.
|
DescribeAlertLogCountRequest.Builder |
sourceType(String sourceType)
This parameter is deprecated.
|
DescribeAlertLogCountRequest.Builder |
startTime(Long startTime)
The start timestamp of the alert logs to be queried.
|
public DescribeAlertLogCountRequest.Builder contactGroup(String contactGroup)
public DescribeAlertLogCountRequest.Builder endTime(Long endTime)
Unit: milliseconds. You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty. > The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default.
public DescribeAlertLogCountRequest.Builder eventType(String eventType)
* TRIGGERED: The alert is triggered. * RESOLVED: The alert is resolved.
public DescribeAlertLogCountRequest.Builder groupBy(String groupBy)
* `product`: aggregates data by cloud service. * `level`: aggregates data by alert level. * `groupId`: aggregates data by application group. * `contactGroup`: aggregates data by alert group. * `product,metricName`: aggregates data both by cloud service and by metric.
public DescribeAlertLogCountRequest.Builder groupId(String groupId)
public DescribeAlertLogCountRequest.Builder lastMin(String lastMin)
public DescribeAlertLogCountRequest.Builder level(String level)
* P4: Alert notifications are sent by using emails and DingTalk chatbots. * OK: No alert is generated.
public DescribeAlertLogCountRequest.Builder metricName(String metricName)
> For more information about the metrics of different cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeAlertLogCountRequest.Builder namespace(String namespace)
> For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeAlertLogCountRequest.Builder pageNumber(Integer pageNumber)
* `product`: aggregates data by cloud service. * `level`: aggregates data by alert level. * `groupId`: aggregates data by application group. * `contactGroup`: aggregates data by alert contact group. * `product,metricName`: aggregates data both by cloud service and by metric.
public DescribeAlertLogCountRequest.Builder pageSize(Integer pageSize)
public DescribeAlertLogCountRequest.Builder product(String product)
public DescribeAlertLogCountRequest.Builder ruleId(String ruleId)
For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).
public DescribeAlertLogCountRequest.Builder ruleName(String ruleName)
public DescribeAlertLogCountRequest.Builder searchKey(String searchKey)
public DescribeAlertLogCountRequest.Builder sendStatus(String sendStatus)
* 0: The alert is triggered or cleared. * 1: The alert is generated not during the effective period. * 2: The alert is muted and not triggered in a specified period. * 3: The host is restarting. * 4: Notifications are not sent for the alert. When the value of the SendStatus parameter is 0, the value P4 of the Level parameter indicates a triggered alert and the value OK indicates a cleared alert.
public DescribeAlertLogCountRequest.Builder sourceType(String sourceType)
public DescribeAlertLogCountRequest.Builder startTime(Long startTime)
Unit: milliseconds. You can query only the alert logs within the last year. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty. > The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default.
public DescribeAlertLogCountRequest build()
Copyright © 2024. All rights reserved.