Class DatafeedTimingStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DatafeedTimingStats.Builder>
co.elastic.clients.elasticsearch.ml.DatafeedTimingStats.Builder
- All Implemented Interfaces:
WithJson<DatafeedTimingStats.Builder>
,ObjectBuilder<DatafeedTimingStats>
- Enclosing class:
- DatafeedTimingStats
public static class DatafeedTimingStats.Builder
extends WithJsonObjectBuilderBase<DatafeedTimingStats.Builder>
implements ObjectBuilder<DatafeedTimingStats>
Builder for
DatafeedTimingStats
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe average search time per bucket, in milliseconds.bucketCount
(long value) Required - The number of buckets processed.build()
Builds aDatafeedTimingStats
.exponentialAverageSearchTimePerHourMs
(double value) Required - The exponential average search time per hour, in milliseconds.Required - Identifier for the anomaly detection job.searchCount
(long value) Required - The number of searches run by the datafeed.protected DatafeedTimingStats.Builder
self()
totalSearchTimeMs
(double value) Required - The total time the datafeed spent searching, in milliseconds.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketCount
Required - The number of buckets processed.API name:
bucket_count
-
exponentialAverageSearchTimePerHourMs
Required - The exponential average search time per hour, in milliseconds.API name:
exponential_average_search_time_per_hour_ms
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
searchCount
Required - The number of searches run by the datafeed.API name:
search_count
-
totalSearchTimeMs
Required - The total time the datafeed spent searching, in milliseconds.API name:
total_search_time_ms
-
averageSearchTimePerBucketMs
The average search time per bucket, in milliseconds.API name:
average_search_time_per_bucket_ms
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DatafeedTimingStats.Builder>
-
build
Builds aDatafeedTimingStats
.- Specified by:
build
in interfaceObjectBuilder<DatafeedTimingStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-