public static class DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates> |
aggregates
The aggregate functions.
|
Long |
gmtCreate
The time when the log monitoring metric was created.
|
List<String> |
groupbys
The dimension based on which the data is grouped.
|
Long |
groupId
The ID of the application group.
|
Long |
logId
The ID returned by Log Service.
|
String |
metricExpress
The extended field.
|
String |
metricName
The name of the log monitoring metric.
|
String |
slsLogstore
The name of the Log Service Logstore.
|
String |
slsProject
The name of the Log Service project.
|
String |
slsRegionId
The ID of the region where the Log Service Logstore resides.
|
List<String> |
tumblingwindows
The size of the tumbling window for calculation.
|
List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter> |
valueFilter
The condition that is used to filter logs.
|
String |
valueFilterRelation
The logical operator that is used between log filter conditions.
|
| 构造器和说明 |
|---|
DescribeLogMonitorAttributeResponseBodyLogMonitor() |
@NameInMap(value="Aggregates") public List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates> aggregates
The aggregate functions.
@NameInMap(value="GmtCreate") public Long gmtCreate
The time when the log monitoring metric was created.
This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.
@NameInMap(value="GroupId") public Long groupId
The ID of the application group.
@NameInMap(value="Groupbys") public List<String> groupbys
The dimension based on which the data is grouped. This parameter is equivalent to the GROUP BY clause in SQL statements. If no dimension is specified, all data is aggregated based on the aggregate function.
@NameInMap(value="LogId") public Long logId
The ID returned by Log Service.
@NameInMap(value="MetricExpress") public String metricExpress
The extended field. The extended field allows you to perform basic operations on the aggregation results.
Assume that you have calculated TotalNumber and 5XXNumber by aggregating the data. TotalNumber indicates the total number of HTTP requests, and 5XXNumber indicates the number of HTTP requests whose status code is greater than 499. You can calculate the server error rate by adding the following formula to the extended field: 5XXNumber/TotalNumber\*100.
@NameInMap(value="MetricName") public String metricName
The name of the log monitoring metric. For more information, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="SlsLogstore") public String slsLogstore
The name of the Log Service Logstore.
@NameInMap(value="SlsProject") public String slsProject
The name of the Log Service project.
@NameInMap(value="SlsRegionId") public String slsRegionId
The ID of the region where the Log Service Logstore resides.
@NameInMap(value="Tumblingwindows") public List<String> tumblingwindows
The size of the tumbling window for calculation. Unit: seconds. The system performs an aggregation for each tumbling window.
@NameInMap(value="ValueFilter") public List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter> valueFilter
The condition that is used to filter logs. The ValueFilter and ValueFilterRelation parameters are used in pair. The filter condition is equivalent to the WHERE clause in SQL statements.
If no filter condition is specified, all logs are processed. Assume that logs contain the Level field, which may be set to Error. If you need to calculate the number of times that logs of the Error level appear every minute, you can set the filter condition to Level=Error and count the number of logs that meet this condition.
@NameInMap(value="ValueFilterRelation") public String valueFilterRelation
The logical operator that is used between log filter conditions. The ValueFilter and ValueFilterRelation parameters are used in pair. Valid values:
* and
* or
public DescribeLogMonitorAttributeResponseBodyLogMonitor()
public static DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor build(Map<String,?> map) throws Exception
Exceptionpublic DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setAggregates(List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates> aggregates)
public List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates> getAggregates()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setGmtCreate(Long gmtCreate)
public Long getGmtCreate()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setGroupId(Long groupId)
public Long getGroupId()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setGroupbys(List<String> groupbys)
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setLogId(Long logId)
public Long getLogId()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setMetricExpress(String metricExpress)
public String getMetricExpress()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setMetricName(String metricName)
public String getMetricName()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setSlsLogstore(String slsLogstore)
public String getSlsLogstore()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setSlsProject(String slsProject)
public String getSlsProject()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setSlsRegionId(String slsRegionId)
public String getSlsRegionId()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setTumblingwindows(List<String> tumblingwindows)
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setValueFilter(List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter> valueFilter)
public List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorValueFilter> getValueFilter()
public DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor setValueFilterRelation(String valueFilterRelation)
public String getValueFilterRelation()
Copyright © 2024. All rights reserved.