public static final class DescribeAlertLogListRequest.Builder extends Object
public DescribeAlertLogListRequest.Builder contactGroup(String contactGroup)
public DescribeAlertLogListRequest.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 `AlertLogList` parameter is empty. > The time period between the start time specified by `StartTime` and end time specified by `EndTime` must 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.
public DescribeAlertLogListRequest.Builder eventType(String eventType)
* TRIGGERED: The alert is triggered. * RESOLVED: The alert is resolved.
public DescribeAlertLogListRequest.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 contact group. * `product,metricName`: aggregates data both by cloud service and by metric.
public DescribeAlertLogListRequest.Builder groupId(String groupId)
public DescribeAlertLogListRequest.Builder lastMin(String lastMin)
public DescribeAlertLogListRequest.Builder level(String level)
* P4: Alert notifications are sent by using emails and DingTalk chatbots. * OK: No alert is generated.
public DescribeAlertLogListRequest.Builder metricName(String metricName)
> For more information about the metrics of different cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeAlertLogListRequest.Builder namespace(String namespace)
> For information about how to query the namespace of a cloud service, see [Appendix 1: Metrics](~~163515~~).
public DescribeAlertLogListRequest.Builder pageNumber(Integer pageNumber)
Default value: 1.
public DescribeAlertLogListRequest.Builder pageSize(Integer pageSize)
Default value: 10.
public DescribeAlertLogListRequest.Builder product(String product)
For information about how to obtain the abbreviation of a cloud service name, see [DescribeProductsOfActiveMetricRule](~~114930~~).
public DescribeAlertLogListRequest.Builder ruleId(String ruleId)
For information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).
public DescribeAlertLogListRequest.Builder ruleName(String ruleName)
public DescribeAlertLogListRequest.Builder searchKey(String searchKey)
public DescribeAlertLogListRequest.Builder sendStatus(String sendStatus)
* 0: The alert is triggered or cleared. * 1: The alert is ineffective. * 2: The alert is muted. * 3: The host is restarting. * 4: No alert notification is sent. 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.
public DescribeAlertLogListRequest.Builder sourceType(String sourceType)
public DescribeAlertLogListRequest.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 `AlertLogList` parameter is empty. > The time period between the start time specified by `StartTime` and the end time specified by `EndTime` must 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.
public DescribeAlertLogListRequest build()
Copyright © 2024. All rights reserved.