public static final class PutLogMonitorRequest.Builder extends Object
public PutLogMonitorRequest.Builder aggregates(List<PutLogMonitorRequest.Aggregates> aggregates)
public PutLogMonitorRequest.Builder groupId(String groupId)
public PutLogMonitorRequest.Builder groupbys(List<PutLogMonitorRequest.Groupbys> groupbys)
public PutLogMonitorRequest.Builder logId(String logId)
> The status code 200 indicates that the call is successful.
public PutLogMonitorRequest.Builder metricExpress(String metricExpress)
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. JSON format: {"extend":{"errorPercent":"5XXNumber/TotalNumber\*100"}}. Description: * extend: required. * errorPercent: the alias of the field generated in the calculation result. You can specify the alias as needed. * 5XXNumber/TotalNumber\*100: the calculation expression.
public PutLogMonitorRequest.Builder metricName(String metricName)
* If the call is successful, the value `successful` is returned. * If the call fails, an error message is returned. Example: `alias of aggreate must be set value.`
public PutLogMonitorRequest.Builder slsLogstore(String slsLogstore)
public PutLogMonitorRequest.Builder slsProject(String slsProject)
public PutLogMonitorRequest.Builder slsRegionId(String slsRegionId)
public PutLogMonitorRequest.Builder tumblingwindows(String tumblingwindows)
* and * or > The ValueFilterRelation and `ValueFilter.N.Key` parameters must be used in pair.
public PutLogMonitorRequest.Builder unit(String unit)
public PutLogMonitorRequest.Builder valueFilter(List<PutLogMonitorRequest.ValueFilter> valueFilter)
public PutLogMonitorRequest.Builder valueFilterRelation(String valueFilterRelation)
public PutLogMonitorRequest build()
Copyright © 2023. All rights reserved.