Class OverallBucket.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<OverallBucket.Builder>
co.elastic.clients.elasticsearch.ml.OverallBucket.Builder
- All Implemented Interfaces:
WithJson<OverallBucket.Builder>,ObjectBuilder<OverallBucket>
- Enclosing class:
- OverallBucket
public static class OverallBucket.Builder extends WithJsonObjectBuilderBase<OverallBucket.Builder> implements ObjectBuilder<OverallBucket>
Builder for
OverallBucket.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description OverallBucket.BuilderbucketSpan(long value)Required - The length of the bucket in seconds.OverallBucketbuild()Builds aOverallBucket.OverallBucket.BuilderisInterim(boolean value)Required - If true, this is an interim result.OverallBucket.Builderjobs(OverallBucketJob value, OverallBucketJob... values)Required - An array of objects that contain the max_anomaly_score per job_id.OverallBucket.Builderjobs(java.util.function.Function<OverallBucketJob.Builder,ObjectBuilder<OverallBucketJob>> fn)Required - An array of objects that contain the max_anomaly_score per job_id.OverallBucket.Builderjobs(java.util.List<OverallBucketJob> list)Required - An array of objects that contain the max_anomaly_score per job_id.OverallBucket.BuilderoverallScore(double value)Required - The top_n average of the maximum bucket anomaly_score per job.OverallBucket.BuilderresultType(java.lang.String value)Required - Internal.protected OverallBucket.Builderself()OverallBucket.Buildertimestamp(Time value)Required - The start time of the bucket for which these results were calculated.OverallBucket.Buildertimestamp(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Required - The start time of the bucket for which these results were calculated.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketSpan
Required - The length of the bucket in seconds. Matches the job with the longest bucket_span value.API name:
bucket_span -
isInterim
Required - If true, this is an interim result. In other words, the results are calculated based on partial input data.API name:
is_interim -
jobs
Required - An array of objects that contain the max_anomaly_score per job_id.API name:
jobsAdds all elements of
listtojobs. -
jobs
Required - An array of objects that contain the max_anomaly_score per job_id.API name:
jobsAdds one or more values to
jobs. -
jobs
public final OverallBucket.Builder jobs(java.util.function.Function<OverallBucketJob.Builder,ObjectBuilder<OverallBucketJob>> fn)Required - An array of objects that contain the max_anomaly_score per job_id.API name:
jobsAdds a value to
jobsusing a builder lambda. -
overallScore
Required - The top_n average of the maximum bucket anomaly_score per job.API name:
overall_score -
resultType
Required - Internal. This is always set to overall_bucket.API name:
result_type -
timestamp
Required - The start time of the bucket for which these results were calculated.API name:
timestamp -
timestamp
public final OverallBucket.Builder timestamp(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Required - The start time of the bucket for which these results were calculated.API name:
timestamp -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<OverallBucket.Builder>
-
build
Builds aOverallBucket.- Specified by:
buildin interfaceObjectBuilder<OverallBucket>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-