public class DescribeAlertLogHistogramRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
contactGroup
The alert contact group.
|
Long |
endTime
The end timestamp of the alert logs to be queried.
|
String |
eventType
The type of the alert event.
|
String |
groupBy
The dimensions based on which data is aggregated.
|
String |
groupId
The ID of the application group.
|
String |
lastMin
The statistical period of alert logs.
|
String |
level
The severity level and notification methods of the alert.
|
String |
metricName
The metric name.
|
String |
namespace
The namespace of the Alibaba Cloud service.
|
Integer |
pageNumber
The page number.
|
Integer |
pageSize
The number of entries per page.
|
String |
product
The abbreviation of the Alibaba Cloud service name.
|
String |
regionId |
String |
ruleId
The ID of the alert rule.
|
String |
ruleName
The name of the alert rule.
|
String |
searchKey
The keyword that is used to query alert logs.
|
String |
sendStatus
The alert status.
|
String |
sourceType
This parameter is deprecated.
|
Long |
startTime
The start timestamp of the alert logs to be queried.
|
| 构造器和说明 |
|---|
DescribeAlertLogHistogramRequest() |
@NameInMap(value="ContactGroup") public String contactGroup
The alert contact group.
@NameInMap(value="EndTime") public 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.
@NameInMap(value="EventType") public String eventType
The type of the alert event. Valid values:
* TRIGGERED: The alert is triggered.
* RESOLVED: The alert is resolved.
@NameInMap(value="GroupBy") public 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.
@NameInMap(value="GroupId") public String groupId
The ID of the application group.
@NameInMap(value="LastMin") public String lastMin
The statistical period of alert logs. Unit: minutes.
@NameInMap(value="Level") public String level
The severity level and notification methods of the alert. Valid values:
* P4: Alert notifications are sent by using emails and DingTalk chatbots.
* OK: No alert is generated.
@NameInMap(value="MetricName") public String metricName
The metric name.
> For more information about the metrics of different cloud services, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="Namespace") public String namespace
The namespace of the Alibaba Cloud service.
> For more information about the namespaces of different cloud services, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="PageNumber") public Integer pageNumber
The page number.
Default value: 1.
@NameInMap(value="PageSize") public Integer pageSize
The number of entries per page.
Default value: 10.
@NameInMap(value="Product") public String product
The abbreviation of the Alibaba Cloud service name.
@NameInMap(value="RegionId") public String regionId
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
For more information about how to obtain the ID of an alert rule, see [DescribeMetricRuleList](~~114941~~).
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule.
@NameInMap(value="SearchKey") public String searchKey
The keyword that is used to query alert logs.
@NameInMap(value="SendStatus") public String sendStatus
The alert status. Valid values:
* 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.
@NameInMap(value="SourceType") public String sourceType
This parameter is deprecated.
@NameInMap(value="StartTime") public 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.
public static DescribeAlertLogHistogramRequest build(Map<String,?> map) throws Exception
Exceptionpublic DescribeAlertLogHistogramRequest setContactGroup(String contactGroup)
public String getContactGroup()
public DescribeAlertLogHistogramRequest setEndTime(Long endTime)
public Long getEndTime()
public DescribeAlertLogHistogramRequest setEventType(String eventType)
public String getEventType()
public DescribeAlertLogHistogramRequest setGroupBy(String groupBy)
public String getGroupBy()
public DescribeAlertLogHistogramRequest setGroupId(String groupId)
public String getGroupId()
public DescribeAlertLogHistogramRequest setLastMin(String lastMin)
public String getLastMin()
public DescribeAlertLogHistogramRequest setLevel(String level)
public String getLevel()
public DescribeAlertLogHistogramRequest setMetricName(String metricName)
public String getMetricName()
public DescribeAlertLogHistogramRequest setNamespace(String namespace)
public String getNamespace()
public DescribeAlertLogHistogramRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeAlertLogHistogramRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeAlertLogHistogramRequest setProduct(String product)
public String getProduct()
public DescribeAlertLogHistogramRequest setRegionId(String regionId)
public String getRegionId()
public DescribeAlertLogHistogramRequest setRuleId(String ruleId)
public String getRuleId()
public DescribeAlertLogHistogramRequest setRuleName(String ruleName)
public String getRuleName()
public DescribeAlertLogHistogramRequest setSearchKey(String searchKey)
public String getSearchKey()
public DescribeAlertLogHistogramRequest setSendStatus(String sendStatus)
public String getSendStatus()
public DescribeAlertLogHistogramRequest setSourceType(String sourceType)
public String getSourceType()
public DescribeAlertLogHistogramRequest setStartTime(Long startTime)
public Long getStartTime()
Copyright © 2024. All rights reserved.