public static class DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitor
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<DescribeLogMonitorAttributeResponseBody.DescribeLogMonitorAttributeResponseBodyLogMonitorAggregates> |
aggregates
The aggregation logic.
|
Long |
gmtCreate
The time when the metric was created.
|
List<String> |
groupbys |
Long |
groupId
The ID of the application group.
|
Long |
logId
The ID of the log.
|
String |
metricExpress
The extended field.
|
String |
metricName
The metric name.
|
String |
slsLogstore
The name of the Simple Log Service Logstore.
|
String |
slsProject
The name of the SLS project.
|
String |
slsRegionId
The ID of the region where the Simple Log Service (SLS) Logstore resides.
|
List<String> |
tumblingwindows |
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 aggregation logic.
@NameInMap(value="GmtCreate") public Long gmtCreate
The time when the metric was created.
This value is a UNIX timestamp that represents the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.
example:1547431398000
@NameInMap(value="GroupId") public Long groupId
The ID of the application group.
example:12345
@NameInMap(value="LogId") public Long logId
The ID of the log.
example:1234
@NameInMap(value="MetricExpress") public String metricExpress
The extended field. The extended field allows you to perform basic operations on the aggregation results.
For example, if 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.
example:{"extend":{"errorPercent":"5XXNumber/TotalNumber*100"}}
@NameInMap(value="MetricName") public String metricName
The metric name. For more information, see Appendix 1: Metrics.
example:cpu_total
@NameInMap(value="SlsLogstore") public String slsLogstore
The name of the Simple Log Service Logstore.
example:test-logstore
@NameInMap(value="SlsProject") public String slsProject
The name of the SLS project.
example:test-project
@NameInMap(value="SlsRegionId") public String slsRegionId
The ID of the region where the Simple Log Service (SLS) Logstore resides.
example:cn-hangzhou
@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. For example, logs contain the Level and Error fields. 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 must be used in pair. Valid values:
and
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 © 2026. All rights reserved.