Class DatafeedsRecord.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • id

      public final DatafeedsRecord.Builder id(@Nullable String value)
      The datafeed identifier.

      API name: id

    • state

      public final DatafeedsRecord.Builder state(@Nullable DatafeedState value)
      The status of the datafeed.

      API name: state

    • assignmentExplanation

      public final DatafeedsRecord.Builder assignmentExplanation(@Nullable String value)
      For started datafeeds only, contains messages relating to the selection of a node.

      API name: assignment_explanation

    • bucketsCount

      public final DatafeedsRecord.Builder bucketsCount(@Nullable String value)
      The number of buckets processed.

      API name: buckets.count

    • searchCount

      public final DatafeedsRecord.Builder searchCount(@Nullable String value)
      The number of searches run by the datafeed.

      API name: search.count

    • searchTime

      public final DatafeedsRecord.Builder searchTime(@Nullable String value)
      The total time the datafeed spent searching, in milliseconds.

      API name: search.time

    • searchBucketAvg

      public final DatafeedsRecord.Builder searchBucketAvg(@Nullable String value)
      The average search time per bucket, in milliseconds.

      API name: search.bucket_avg

    • searchExpAvgHour

      public final DatafeedsRecord.Builder searchExpAvgHour(@Nullable String value)
      The exponential average search time per hour, in milliseconds.

      API name: search.exp_avg_hour

    • nodeId

      public final DatafeedsRecord.Builder nodeId(@Nullable String value)
      The unique identifier of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.

      API name: node.id

    • nodeName

      public final DatafeedsRecord.Builder nodeName(@Nullable String value)
      The name of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.

      API name: node.name

    • nodeEphemeralId

      public final DatafeedsRecord.Builder nodeEphemeralId(@Nullable String value)
      The ephemeral identifier of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.

      API name: node.ephemeral_id

    • nodeAddress

      public final DatafeedsRecord.Builder nodeAddress(@Nullable String value)
      The network address of the assigned node. For started datafeeds only, this information pertains to the node upon which the datafeed is started.

      API name: node.address

    • self

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

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