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 -
Method Summary
Modifier and TypeMethodDescriptionfinal OverallBucket.BuilderbucketSpan(long value) Required - The length of the bucket in seconds.build()Builds aOverallBucket.final OverallBucket.BuilderisInterim(boolean value) Required - If true, this is an interim result.final OverallBucket.Builderjobs(OverallBucketJob value, OverallBucketJob... values) Required - An array of objects that contain the max_anomaly_score per job_id.final OverallBucket.BuilderRequired - An array of objects that contain the max_anomaly_score per job_id.final OverallBucket.Builderjobs(List<OverallBucketJob> list) Required - An array of objects that contain the max_anomaly_score per job_id.final OverallBucket.BuilderoverallScore(double value) Required - The top_n average of the maximum bucket anomaly_score per job.final OverallBucket.BuilderresultType(String value) Required - Internal.protected OverallBucket.Builderself()final OverallBucket.BuilderRequired - The start time of the bucket for which these results were calculated.final OverallBucket.BuilderRequired - 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, _mapPutAll
-
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(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
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:
NullPointerException- if some of the required fields are null.
-