Class IngestStats.Builder

All Implemented Interfaces:
WithJson<IngestStats.Builder>, ObjectBuilder<IngestStats>
Enclosing class:
IngestStats

public static class IngestStats.Builder extends WithJsonObjectBuilderBase<IngestStats.Builder> implements ObjectBuilder<IngestStats>
Builder for IngestStats.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • count

      public final IngestStats.Builder count(long value)
      Required - Total number of documents ingested during the lifetime of this node.

      API name: count

    • current

      public final IngestStats.Builder current(long value)
      Required - Total number of documents currently being ingested.

      API name: current

    • failed

      public final IngestStats.Builder failed(long value)
      Required - Total number of failed ingest operations during the lifetime of this node.

      API name: failed

    • processors

      public final IngestStats.Builder processors(List<Map<String,KeyedProcessor>> list)
      Required - Total number of ingest processors.

      API name: processors

      Adds all elements of list to processors.

    • processors

      public final IngestStats.Builder processors(Map<String,KeyedProcessor> value, Map<String,KeyedProcessor>... values)
      Required - Total number of ingest processors.

      API name: processors

      Adds one or more values to processors.

    • time

      public final IngestStats.Builder time(@Nullable Time value)
      Total time spent preprocessing ingest documents during the lifetime of this node.

      API name: time

    • time

      Total time spent preprocessing ingest documents during the lifetime of this node.

      API name: time

    • timeInMillis

      public final IngestStats.Builder timeInMillis(long value)
      Required - Total time, in milliseconds, spent preprocessing ingest documents during the lifetime of this node.

      API name: time_in_millis

    • ingestedAsFirstPipeline

      public final IngestStats.Builder ingestedAsFirstPipeline(@Nullable String value)
      Total size of all documents ingested by the pipeline. The value counts documents for which this pipeline was the first to process them; for pipelines that are not the first to process a document (for example, a final pipeline after a default pipeline, a pipeline run after a reroute processor, or a pipeline invoked by a pipeline processor), the value is 0.

      API name: ingested_as_first_pipeline

    • ingestedAsFirstPipelineInBytes

      public final IngestStats.Builder ingestedAsFirstPipelineInBytes(long value)
      Required - Total number of bytes of all documents ingested by the pipeline. The value counts documents for which this pipeline was the first to process them; for pipelines that are not the first to process a document, the value is 0.

      API name: ingested_as_first_pipeline_in_bytes

    • producedAsFirstPipeline

      public final IngestStats.Builder producedAsFirstPipeline(@Nullable String value)
      Total size of all documents produced by the pipeline. The value counts documents for which this pipeline was the first to process them; for pipelines that are not the first to process a document, the value is 0. In situations where there are subsequent pipelines, the value represents the size of the document after all pipelines have run.

      API name: produced_as_first_pipeline

    • producedAsFirstPipelineInBytes

      public final IngestStats.Builder producedAsFirstPipelineInBytes(long value)
      Required - Total number of bytes of all documents produced by the pipeline. The value counts documents for which this pipeline was the first to process them; for pipelines that are not the first to process a document, the value is 0. In situations where there are subsequent pipelines, the value represents the size of the document after all pipelines have run.

      API name: produced_as_first_pipeline_in_bytes

    • self

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

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