Class 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 Details

    • Builder

      public Builder()
  • Method Details

    • assignmentExplanation

      public final JobStats.Builder assignmentExplanation(@Nullable String value)
      For open anomaly detection jobs only, contains messages relating to the selection of a node to run the job.

      API name: assignment_explanation

    • dataCounts

      public final JobStats.Builder dataCounts(DataCounts value)
      Required - An object that describes the quantity of input to the job and any related error counts. The data_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. The data_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

      public final JobStats.Builder forecastsStats(JobForecastStatistics value)
      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

      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

      public final JobStats.Builder jobId(String value)
      Required - Identifier for the anomaly detection job.

      API name: job_id

    • modelSizeStats

      public final JobStats.Builder modelSizeStats(ModelSizeStats value)
      Required - An object that provides information about the size and contents of the model.

      API name: model_size_stats

    • modelSizeStats

      Required - An object that provides information about the size and contents of the model.

      API name: model_size_stats

    • node

      public final JobStats.Builder node(@Nullable DiscoveryNode value)
      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

      public final JobStats.Builder openTime(@Nullable DateTime value)
      For open jobs only, the elapsed time for which the job has been open.

      API name: open_time

    • state

      public final JobStats.Builder state(JobState value)
      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

      public final JobStats.Builder timingStats(JobTimingStats value)
      Required - An object that provides statistical information about timing aspect of this job.

      API name: timing_stats

    • timingStats

      Required - An object that provides statistical information about timing aspect of this job.

      API name: timing_stats

    • deleting

      public final JobStats.Builder deleting(@Nullable Boolean value)
      Indicates that the process of deleting the job is in progress but not yet completed. It is only reported when true.

      API name: deleting

    • self

      protected JobStats.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<JobStats.Builder>
    • build

      public JobStats build()
      Builds a JobStats.
      Specified by:
      build in interface ObjectBuilder<JobStats>
      Throws:
      NullPointerException - if some of the required fields are null.