public static final class DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder extends Object
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder aggregates(List<DescribeLogMonitorAttributeResponseBody.Aggregates> aggregates)
The aggregation logic.
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder gmtCreate(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
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder groupId(Long groupId)
The ID of the application group.
example:12345
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder groupbys(List<String> groupbys)
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder logId(Long logId)
The ID of the log.
example:1234
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder metricExpress(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"}}
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder metricName(String metricName)
The metric name. For more information, see Appendix 1: Metrics.
example:cpu_total
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder slsLogstore(String slsLogstore)
The name of the Simple Log Service Logstore.
example:test-logstore
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder slsProject(String slsProject)
The name of the SLS project.
example:test-project
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder slsRegionId(String slsRegionId)
The ID of the region where the Simple Log Service (SLS) Logstore resides.
example:cn-hangzhou
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder tumblingwindows(List<String> tumblingwindows)
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder valueFilter(List<DescribeLogMonitorAttributeResponseBody.ValueFilter> 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.
public DescribeLogMonitorAttributeResponseBody.LogMonitor.Builder valueFilterRelation(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 DescribeLogMonitorAttributeResponseBody.LogMonitor build()
Copyright © 2026. All rights reserved.