public static final class DescribeLogMonitorAttributeResponseBody.Aggregates.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeLogMonitorAttributeResponseBody.Aggregates.Builder |
alias(String alias)
The name of the field in logs.
|
DescribeLogMonitorAttributeResponseBody.Aggregates |
build() |
DescribeLogMonitorAttributeResponseBody.Aggregates.Builder |
fieldName(String fieldName)
The condition that is used to filter logs.
|
DescribeLogMonitorAttributeResponseBody.Aggregates.Builder |
function(String function)
The alias of the aggregate function.
|
DescribeLogMonitorAttributeResponseBody.Aggregates.Builder |
max(String max)
The minimum value.
|
DescribeLogMonitorAttributeResponseBody.Aggregates.Builder |
min(String min)
The function that is used to aggregate the monitoring data of logs within an aggregation period.
|
public DescribeLogMonitorAttributeResponseBody.Aggregates.Builder alias(String alias)
public DescribeLogMonitorAttributeResponseBody.Aggregates.Builder fieldName(String fieldName)
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.
public DescribeLogMonitorAttributeResponseBody.Aggregates.Builder function(String function)
public DescribeLogMonitorAttributeResponseBody.Aggregates.Builder max(String max)
public DescribeLogMonitorAttributeResponseBody.Aggregates.Builder min(String min)
* count: counts the number. * sum: calculates the total value. * avg: calculates the average value. * max: selects the maximum value. * min: selects the minimum value. * countps: calculates the counted number of the specified field divided by the total number of seconds of the aggregation period. * sumps: calculates the total value of the specified field divided by the total number of seconds of the aggregation period. * distinct: counts the number of logs where the specified field appears within the aggregation period.
public DescribeLogMonitorAttributeResponseBody.Aggregates build()
Copyright © 2023. All rights reserved.