public static final class DescribeAlertLogHistogramRequest.Builder extends Object
public DescribeAlertLogHistogramRequest.Builder contactGroup(String contactGroup)
public DescribeAlertLogHistogramRequest.Builder endTime(Long endTime)
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.
public DescribeAlertLogHistogramRequest.Builder eventType(String eventType)
* TRIGGERED: The alert is triggered. * RESOLVED: The alert is resolved.
public DescribeAlertLogHistogramRequest.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 DescribeAlertLogHistogramRequest.Builder groupId(String groupId)
public DescribeAlertLogHistogramRequest.Builder lastMin(String lastMin)
public DescribeAlertLogHistogramRequest.Builder level(String level)
* P4: Alert notifications are sent by using emails and DingTalk chatbots. * OK: No alert is generated.
public DescribeAlertLogHistogramRequest.Builder metricName(String metricName)
> For more information about the metrics of different cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeAlertLogHistogramRequest.Builder namespace(String namespace)
> For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeAlertLogHistogramRequest.Builder pageNumber(Integer pageNumber)
Default value: 1.
public DescribeAlertLogHistogramRequest.Builder pageSize(Integer pageSize)
Default value: 10.
public DescribeAlertLogHistogramRequest.Builder product(String product)
public DescribeAlertLogHistogramRequest.Builder ruleId(String ruleId)
For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).
public DescribeAlertLogHistogramRequest.Builder ruleName(String ruleName)
public DescribeAlertLogHistogramRequest.Builder searchKey(String searchKey)
public DescribeAlertLogHistogramRequest.Builder sendStatus(String sendStatus)
* 0: The alert is triggered or cleared. * 1: The alert is ineffective. * 2: The alert is muted and not triggered in a specified period. * 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 DescribeAlertLogHistogramRequest.Builder sourceType(String sourceType)
public DescribeAlertLogHistogramRequest.Builder startTime(Long startTime)
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.
public DescribeAlertLogHistogramRequest build()
Copyright © 2024. All rights reserved.