public static final class DescribeAlertLogHistogramRequest.Builder extends Object
public DescribeAlertLogHistogramRequest.Builder contactGroup(String contactGroup)
The alert contact group.
example:ECS_Group
public DescribeAlertLogHistogramRequest.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.
The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days.
1609989009694
public DescribeAlertLogHistogramRequest.Builder eventType(String eventType)
The type of the alert event. Valid values:
RESOLVED
public DescribeAlertLogHistogramRequest.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 DescribeAlertLogHistogramRequest.Builder groupId(String groupId)
The ID of the application group.
example:7301****
public DescribeAlertLogHistogramRequest.Builder lastMin(String lastMin)
The statistical period of alert logs. Unit: minutes.
example:360
public DescribeAlertLogHistogramRequest.Builder level(String level)
The severity level and notification methods of the alert. Valid values:
P4
public DescribeAlertLogHistogramRequest.Builder metricName(String metricName)
The metric name.
example:For more information about the metrics of different cloud services, see Appendix 1: Metrics.
cpu_total
public DescribeAlertLogHistogramRequest.Builder namespace(String namespace)
The namespace of the Alibaba Cloud service.
example:For more information about the namespaces of different cloud services, see Appendix 1: Metrics.
acs_ecs_dashboard
public DescribeAlertLogHistogramRequest.Builder pageNumber(Integer pageNumber)
The page number.
Default value: 1.
example:1
public DescribeAlertLogHistogramRequest.Builder pageSize(Integer pageSize)
The number of entries per page.
Default value: 10.
example:10
public DescribeAlertLogHistogramRequest.Builder product(String product)
The abbreviation of the Alibaba Cloud service name.
example:ECS
public DescribeAlertLogHistogramRequest.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:ae06917_75a8c43178ab66****
public DescribeAlertLogHistogramRequest.Builder ruleName(String ruleName)
The name of the alert rule.
example:test123
public DescribeAlertLogHistogramRequest.Builder searchKey(String searchKey)
The keyword that is used to query alert logs.
example:alert
public DescribeAlertLogHistogramRequest.Builder sendStatus(String sendStatus)
The alert status. 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 DescribeAlertLogHistogramRequest.Builder sourceType(String sourceType)
This parameter is deprecated.
example:None
public DescribeAlertLogHistogramRequest.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.
The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days.
1609988009694
public DescribeAlertLogHistogramRequest build()
Copyright © 2026. All rights reserved.