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)
The alert group.
example:ECS_Group
public DescribeAlertLogCountRequest.Builder endTime(Long endTime)
The end timestamp of the alert logs to be queried.
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.
example: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.
1610074409694
public DescribeAlertLogCountRequest.Builder eventType(String eventType)
The type of the alert event. Valid values:
TRIGGERED
public DescribeAlertLogCountRequest.Builder groupBy(String groupBy)
The dimension based on which data is aggregated. This parameter is similar to the Group By clause of SQL statements. Valid values:
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.This parameter is required.
example:product
public DescribeAlertLogCountRequest.Builder groupId(String groupId)
The ID of the application group.
example:7301****
public DescribeAlertLogCountRequest.Builder lastMin(String lastMin)
The statistical period of alert logs. Unit: minutes.
example:360
public DescribeAlertLogCountRequest.Builder level(String level)
The level and notification method of the alert. Valid values:
P4
public DescribeAlertLogCountRequest.Builder metricName(String metricName)
The name of the metric.
example:For more information about the metrics of different cloud services, see Appendix 1: Metrics.
cpu_total
public DescribeAlertLogCountRequest.Builder namespace(String namespace)
The namespace of the cloud service.
example:For more information about the namespaces of cloud services, see Appendix 1: Metrics.
acs_ecs_dashboard
public DescribeAlertLogCountRequest.Builder pageNumber(Integer pageNumber)
The dimension based on which data is aggregated. This parameter is equivalent to the GROUP BY clause in SQL. Valid values:
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.1
public DescribeAlertLogCountRequest.Builder pageSize(Integer pageSize)
The number of entries to return on each page. Default value: 10.
example:10
public DescribeAlertLogCountRequest.Builder product(String product)
The abbreviation of the service name.
example:ECS
public DescribeAlertLogCountRequest.Builder ruleId(String ruleId)
The ID of the alert rule.
For more information about how to obtain the ID of an alert rule, see DescribeMetricRuleList.
example:bfae2ca5b4e07d2c7278772e***********
public DescribeAlertLogCountRequest.Builder ruleName(String ruleName)
The name of the alert rule.
example:test123
public DescribeAlertLogCountRequest.Builder searchKey(String searchKey)
The keyword based on which the alert logs to be counted are searched.
example:test
public DescribeAlertLogCountRequest.Builder sendStatus(String sendStatus)
The status of the alert. Valid values:
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.
example:0
public DescribeAlertLogCountRequest.Builder sourceType(String sourceType)
This parameter is deprecated.
example:None
public DescribeAlertLogCountRequest.Builder startTime(Long startTime)
The start timestamp of the alert logs to be queried.
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.
example: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.
1609988009694
public DescribeAlertLogCountRequest build()
Copyright © 2026. All rights reserved.