public class DescribeAlertLogListRequest
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 cloud service.
|
Integer |
pageNumber
The page number.
|
Integer |
pageSize
The number of entries per page.
|
String |
product
The abbreviation of the service name.
|
String |
regionId |
String |
ruleId
The ID of the alert rule.
|
String |
ruleName
The name of the alert rule.
|
String |
searchKey
The search keyword that is used to query alert logs.
|
String |
sendStatus
The status of the alert.
|
String |
sourceType
The type of the alert rule.
|
Long |
startTime
The start timestamp of the alert logs to be queried.
|
| 构造器和说明 |
|---|
DescribeAlertLogListRequest() |
@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. 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.
@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 cloud service.
> For information about how to query the namespace of a cloud service, 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 service name.
For information about how to obtain the abbreviation of a cloud service name, see [DescribeProductsOfActiveMetricRule](~~114930~~).
@NameInMap(value="RegionId") public String regionId
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
For 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 search keyword that is used to query alert logs.
@NameInMap(value="SendStatus") public String sendStatus
The status of the alert. Valid values:
* 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.
@NameInMap(value="SourceType") public String sourceType
The type of the alert rule. Valid value: METRIC. This value indicates an alert rule for time series metrics.
@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. 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 static DescribeAlertLogListRequest build(Map<String,?> map) throws Exception
Exceptionpublic DescribeAlertLogListRequest setContactGroup(String contactGroup)
public String getContactGroup()
public DescribeAlertLogListRequest setEndTime(Long endTime)
public Long getEndTime()
public DescribeAlertLogListRequest setEventType(String eventType)
public String getEventType()
public DescribeAlertLogListRequest setGroupBy(String groupBy)
public String getGroupBy()
public DescribeAlertLogListRequest setGroupId(String groupId)
public String getGroupId()
public DescribeAlertLogListRequest setLastMin(String lastMin)
public String getLastMin()
public DescribeAlertLogListRequest setLevel(String level)
public String getLevel()
public DescribeAlertLogListRequest setMetricName(String metricName)
public String getMetricName()
public DescribeAlertLogListRequest setNamespace(String namespace)
public String getNamespace()
public DescribeAlertLogListRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeAlertLogListRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeAlertLogListRequest setProduct(String product)
public String getProduct()
public DescribeAlertLogListRequest setRegionId(String regionId)
public String getRegionId()
public DescribeAlertLogListRequest setRuleId(String ruleId)
public String getRuleId()
public DescribeAlertLogListRequest setRuleName(String ruleName)
public String getRuleName()
public DescribeAlertLogListRequest setSearchKey(String searchKey)
public String getSearchKey()
public DescribeAlertLogListRequest setSendStatus(String sendStatus)
public String getSendStatus()
public DescribeAlertLogListRequest setSourceType(String sourceType)
public String getSourceType()
public DescribeAlertLogListRequest setStartTime(Long startTime)
public Long getStartTime()
Copyright © 2024. All rights reserved.