Class JobStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<JobStats.Builder>
co.elastic.clients.elasticsearch.ml.JobStats.Builder
- All Implemented Interfaces:
WithJson<JobStats.Builder>
,ObjectBuilder<JobStats>
- Enclosing class:
- JobStats
public static class JobStats.Builder
extends WithJsonObjectBuilderBase<JobStats.Builder>
implements ObjectBuilder<JobStats>
Builder for
JobStats
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal JobStats.Builder
assignmentExplanation
(String value) For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job.build()
Builds aJobStats
.final JobStats.Builder
dataCounts
(DataCounts value) Required - An object that describes the quantity of input to the job and any related error counts.final JobStats.Builder
Required - An object that describes the quantity of input to the job and any related error counts.final JobStats.Builder
Indicates that the process of deleting the job is in progress but not yet completed.final JobStats.Builder
Required - An object that provides statistical information about forecasts belonging to this job.final JobStats.Builder
Required - An object that provides statistical information about forecasts belonging to this job.final JobStats.Builder
Required - Identifier for the anomaly detection job.final JobStats.Builder
modelSizeStats
(ModelSizeStats value) Required - An object that provides information about the size and contents of the model.final JobStats.Builder
Required - An object that provides information about the size and contents of the model.final JobStats.Builder
node
(DiscoveryNode value) Contains properties for the node that runs the job.final JobStats.Builder
Contains properties for the node that runs the job.final JobStats.Builder
For open jobs only, the elapsed time for which the job has been open.protected JobStats.Builder
self()
final JobStats.Builder
Required - The status of the anomaly detection job, which can be one of the following values:closed
,closing
,failed
,opened
,opening
.final JobStats.Builder
timingStats
(JobTimingStats value) Required - An object that provides statistical information about timing aspect of this job.final JobStats.Builder
Required - An object that provides statistical information about timing aspect of this job.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
-
assignmentExplanation
For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job.API name:
assignment_explanation
-
dataCounts
Required - An object that describes the quantity of input to the job and any related error counts. Thedata_count
values are cumulative for the lifetime of a job. If a model snapshot is reverted or old results are deleted, the job counts are not reset.API name:
data_counts
-
dataCounts
Required - An object that describes the quantity of input to the job and any related error counts. Thedata_count
values are cumulative for the lifetime of a job. If a model snapshot is reverted or old results are deleted, the job counts are not reset.API name:
data_counts
-
forecastsStats
Required - An object that provides statistical information about forecasts belonging to this job. Some statistics are omitted if no forecasts have been made.API name:
forecasts_stats
-
forecastsStats
public final JobStats.Builder forecastsStats(Function<JobForecastStatistics.Builder, ObjectBuilder<JobForecastStatistics>> fn) Required - An object that provides statistical information about forecasts belonging to this job. Some statistics are omitted if no forecasts have been made.API name:
forecasts_stats
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
modelSizeStats
Required - An object that provides information about the size and contents of the model.API name:
model_size_stats
-
modelSizeStats
public final JobStats.Builder modelSizeStats(Function<ModelSizeStats.Builder, ObjectBuilder<ModelSizeStats>> fn) Required - An object that provides information about the size and contents of the model.API name:
model_size_stats
-
node
Contains properties for the node that runs the job. This information is available only for open jobs.API name:
node
-
node
Contains properties for the node that runs the job. This information is available only for open jobs.API name:
node
-
openTime
For open jobs only, the elapsed time for which the job has been open.API name:
open_time
-
state
Required - The status of the anomaly detection job, which can be one of the following values:closed
,closing
,failed
,opened
,opening
.API name:
state
-
timingStats
Required - An object that provides statistical information about timing aspect of this job.API name:
timing_stats
-
timingStats
public final JobStats.Builder timingStats(Function<JobTimingStats.Builder, ObjectBuilder<JobTimingStats>> fn) Required - An object that provides statistical information about timing aspect of this job.API name:
timing_stats
-
deleting
Indicates that the process of deleting the job is in progress but not yet completed. It is only reported whentrue
.API name:
deleting
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<JobStats.Builder>
-
build
Builds aJobStats
.- Specified by:
build
in interfaceObjectBuilder<JobStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-