public static final class CreateHybridMonitorTaskRequest.Statistics.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
CreateHybridMonitorTaskRequest.Statistics.Builder |
alias(String alias)
The alias of the aggregation result.
|
CreateHybridMonitorTaskRequest.Statistics |
build() |
CreateHybridMonitorTaskRequest.Statistics.Builder |
function(String function)
The function that is used to aggregate the log data of a statistical period.
|
CreateHybridMonitorTaskRequest.Statistics.Builder |
parameter1(String parameter1)
The value of the function that is used to aggregate logs imported from Simple Log Service.
|
CreateHybridMonitorTaskRequest.Statistics.Builder |
parameter2(String parameter2)
The value of the function that is used to aggregate logs imported from Simple Log Service.
|
CreateHybridMonitorTaskRequest.Statistics.Builder |
SLSKeyName(String SLSKeyName)
The name of the key that is used to aggregate logs imported from Simple Log Service.
|
public CreateHybridMonitorTaskRequest.Statistics.Builder alias(String alias)
public CreateHybridMonitorTaskRequest.Statistics.Builder function(String function)
* count: counts the number. * sum: calculates the total value. * avg: calculates the average value. * max: calculates the maximum value. * min: calculates the minimum value. * value: collects samples within the statistical period. * countps: calculates the number of values of the specified field divided by the total number of seconds within a statistical period. * sumps: calculates the sum of the values of the specified field divided by the total number of seconds within a statistical period. * distinct: calculates the number of unique values of the specified field within a statistical period. * distribution: calculates the number of logs that meet a specified condition within the statistical period. * percentile: sorts the values of the specified field in ascending order, and then returns the value that is at the specified percentile within the statistical period. Example: P50.
public CreateHybridMonitorTaskRequest.Statistics.Builder parameter1(String parameter1)
* If the `Function` parameter is set to `distribution`, this parameter specifies the lower limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 200. * If the `Function` parameter is set to `percentile`, this parameter specifies the percentile at which the expected value is. For example, 0.5 specifies P50.
public CreateHybridMonitorTaskRequest.Statistics.Builder parameter2(String parameter2)
> This parameter is required only if the `Function` parameter is set to `distribution`. This parameter specifies the upper limit of the statistical interval. For example, if you want to calculate the number of HTTP requests whose status code is 2XX, set this parameter to 299.
public CreateHybridMonitorTaskRequest.Statistics.Builder SLSKeyName(String SLSKeyName)
public CreateHybridMonitorTaskRequest.Statistics build()
Copyright © 2024. All rights reserved.