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.

    • 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

    • ingestedAsFirstPipelineInBytes

      public final IngestStats.Builder ingestedAsFirstPipelineInBytes(long value)
      Required - Total number of bytes of all documents ingested by the pipeline. This field is only present on pipelines which are the first to process a document. Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors.

      API name: ingested_as_first_pipeline_in_bytes

    • producedAsFirstPipelineInBytes

      public final IngestStats.Builder producedAsFirstPipelineInBytes(long value)
      Required - Total number of bytes of all documents produced by the pipeline. This field is only present on pipelines which are the first to process a document. Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after a reroute processor, or pipelines in pipeline processors. 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.