public class DescribeAlertLogCountRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
contactGroup
The alert group.
|
Long |
endTime
The end timestamp of the alert logs to be queried.
|
String |
eventType
The type of the alert event.
|
String |
groupBy
The dimension 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 level and notification method of the alert.
|
String |
metricName
The name of the metric.
|
String |
namespace
The namespace of the cloud service.
|
Integer |
pageNumber
The dimension based on which data is aggregated.
|
Integer |
pageSize
The number of entries to return on each 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 keyword based on which the alert logs to be counted are searched.
|
String |
sendStatus
The status of the alert.
|
String |
sourceType
This parameter is deprecated.
|
Long |
startTime
The start timestamp of the alert logs to be queried.
|
| 构造器和说明 |
|---|
DescribeAlertLogCountRequest() |
@NameInMap(value="ContactGroup") public String contactGroup
The alert 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 `AlertLogCount` parameter is empty.
> The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, 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 dimension based on which data is aggregated. This parameter is similar to the Group By clause of SQL statements. 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 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 level and notification method 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 name of the metric.
> 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 more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="PageNumber") public Integer pageNumber
The dimension 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="PageSize") public Integer pageSize
The number of entries to return on each page. Default value: 10.
@NameInMap(value="Product") public String product
The abbreviation of the 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 based on which the alert logs to be counted are searched.
@NameInMap(value="SendStatus") public String sendStatus
The status of the alert. Valid values:
* 0: The alert is triggered or cleared.
* 1: The alert is generated not during the effective period.
* 2: The alert is muted and not triggered in a specified period.
* 3: The host is restarting.
* 4: Notifications are not sent for the alert.
When 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. If the query time is longer than one year, the return value of the `AlertLogCount` parameter is empty.
> The interval between the start time (StartTime) and end time (EndTime) must be less than or equal to 15 days. The start time and end time must be specified or left empty at the same time. If you do not specify the start time and end time, the alert logs within the last 15 minutes are queried by default.
public static DescribeAlertLogCountRequest build(Map<String,?> map) throws Exception
Exceptionpublic DescribeAlertLogCountRequest setContactGroup(String contactGroup)
public String getContactGroup()
public DescribeAlertLogCountRequest setEndTime(Long endTime)
public Long getEndTime()
public DescribeAlertLogCountRequest setEventType(String eventType)
public String getEventType()
public DescribeAlertLogCountRequest setGroupBy(String groupBy)
public String getGroupBy()
public DescribeAlertLogCountRequest setGroupId(String groupId)
public String getGroupId()
public DescribeAlertLogCountRequest setLastMin(String lastMin)
public String getLastMin()
public DescribeAlertLogCountRequest setLevel(String level)
public String getLevel()
public DescribeAlertLogCountRequest setMetricName(String metricName)
public String getMetricName()
public DescribeAlertLogCountRequest setNamespace(String namespace)
public String getNamespace()
public DescribeAlertLogCountRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeAlertLogCountRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeAlertLogCountRequest setProduct(String product)
public String getProduct()
public DescribeAlertLogCountRequest setRegionId(String regionId)
public String getRegionId()
public DescribeAlertLogCountRequest setRuleId(String ruleId)
public String getRuleId()
public DescribeAlertLogCountRequest setRuleName(String ruleName)
public String getRuleName()
public DescribeAlertLogCountRequest setSearchKey(String searchKey)
public String getSearchKey()
public DescribeAlertLogCountRequest setSendStatus(String sendStatus)
public String getSendStatus()
public DescribeAlertLogCountRequest setSourceType(String sourceType)
public String getSourceType()
public DescribeAlertLogCountRequest setStartTime(Long startTime)
public Long getStartTime()
Copyright © 2024. All rights reserved.