Class NodeUsage.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • restActions

      public final NodeUsage.Builder restActions(Map<String,Integer> map)
      Required - The total number of times each REST endpoint has been called on this node since the last restart. Note that the REST endpoint names are not considered stable.

      API name: rest_actions

      Adds all entries of map to restActions.

    • restActions

      public final NodeUsage.Builder restActions(String key, Integer value)
      Required - The total number of times each REST endpoint has been called on this node since the last restart. Note that the REST endpoint names are not considered stable.

      API name: rest_actions

      Adds an entry to restActions.

    • since

      public final NodeUsage.Builder since(long value)
      Required - The timestamp for when the collection of these statistics started.

      API name: since

    • timestamp

      public final NodeUsage.Builder timestamp(long value)
      Required - The timestamp for when these statistics were collected.

      API name: timestamp

    • aggregations

      public final NodeUsage.Builder aggregations(Map<String,JsonData> map)
      Required - The total number of times search aggregations have been called on this node since the last restart.

      API name: aggregations

      Adds all entries of map to aggregations.

    • aggregations

      public final NodeUsage.Builder aggregations(String key, JsonData value)
      Required - The total number of times search aggregations have been called on this node since the last restart.

      API name: aggregations

      Adds an entry to aggregations.

    • self

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

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