public static final class DescribeAlertLogListRequest.Builder extends Object
public DescribeAlertLogListRequest.Builder contactGroup(String contactGroup)
The alert contact group.
example:ECS_Group
public DescribeAlertLogListRequest.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 AlertLogList parameter is empty.
example:The time period between the start time specified by
StartTimeand end time specified byEndTimemust be less than or equal to 15 days. You must specify StartTime and EndTime at the same time, or leave StartTime and EndTime empty at the same time. If you do not specify this parameter, the alert logs within the last 15 minutes are queried by default.
1610074409694
public DescribeAlertLogListRequest.Builder eventType(String eventType)
The type of the alert event. Valid values:
TRIGGERED
public DescribeAlertLogListRequest.Builder groupBy(String groupBy)
The dimensions 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.product
public DescribeAlertLogListRequest.Builder groupId(String groupId)
The ID of the application group.
example:7301****
public DescribeAlertLogListRequest.Builder lastMin(String lastMin)
The statistical period of alert logs. Unit: minutes.
example:360
public DescribeAlertLogListRequest.Builder level(String level)
The severity level and notification methods of the alert. Valid values:
P4
public DescribeAlertLogListRequest.Builder metricName(String metricName)
The metric name.
example:For more information about the metrics of different cloud services, see Appendix 1: Metrics.
IntranetInRate
public DescribeAlertLogListRequest.Builder namespace(String namespace)
The namespace of the cloud service.
example:For information about how to query the namespace of a cloud service, see Appendix 1: Metrics.
acs_ecs_dashboard
public DescribeAlertLogListRequest.Builder pageNumber(Integer pageNumber)
The page number.
Default value: 1.
example:1
public DescribeAlertLogListRequest.Builder pageSize(Integer pageSize)
The number of entries per page.
Default value: 10.
example:10
public DescribeAlertLogListRequest.Builder product(String product)
The abbreviation of the service name.
For information about how to obtain the abbreviation of a cloud service name, see DescribeProductsOfActiveMetricRule.
example:ECS
public DescribeAlertLogListRequest.Builder ruleId(String ruleId)
The ID of the alert rule.
For information about how to obtain the ID of an alert rule, see DescribeMetricRuleList.
example:bc369e8_30f87e517ed2fc****
public DescribeAlertLogListRequest.Builder ruleName(String ruleName)
The name of the alert rule.
example:test123
public DescribeAlertLogListRequest.Builder searchKey(String searchKey)
The search keyword that is used to query alert logs.
example:alert
public DescribeAlertLogListRequest.Builder sendStatus(String sendStatus)
The status of the alert. Valid values:
If 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 DescribeAlertLogListRequest.Builder sourceType(String sourceType)
The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics.
example:METRIC
public DescribeAlertLogListRequest.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 AlertLogList parameter is empty.
example:The time period between the start time specified by
StartTimeand the end time specified byEndTimemust be less than or equal to 15 days. You must specify StartTime and EndTime at the same time, or leave StartTime and EndTime empty at the same time. If you do not specify this parameter, the alert logs within the last 15 minutes are queried by default.
1609988009694
public DescribeAlertLogListRequest build()
Copyright © 2026. All rights reserved.