java.lang.Object
co.elastic.clients.elasticsearch.xpack.usage.Counter
All Implemented Interfaces:
JsonpSerializable
Direct Known Subclasses:
WatcherWatchTriggerSchedule

@JsonpDeserializable
public class Counter
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Constructor Details

  • Method Details

    • counterOf

      public static Counter counterOf​(java.util.function.Function<Counter.Builder,​ObjectBuilder<Counter>> fn)
    • active

      public final long active()
      Required - API name: active
    • total

      public final long total()
      Required - API name: total
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupCounterDeserializer

      protected static <BuilderT extends Counter.AbstractBuilder<BuilderT>> void setupCounterDeserializer​(ObjectDeserializer<BuilderT> op)