Class Counter
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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCounter.AbstractBuilder<BuilderT extends Counter.AbstractBuilder<BuilderT>>static classCounter.BuilderBuilder forCounter. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Counter>_DESERIALIZERJson deserializer forCounter -
Constructor Summary
Constructors Modifier Constructor Description protectedCounter(Counter.AbstractBuilder<?> builder) -
Method Summary
Modifier and Type Method Description longactive()Required - API name:activestatic CountercounterOf(java.util.function.Function<Counter.Builder,ObjectBuilder<Counter>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <BuilderT extends Counter.AbstractBuilder<BuilderT>>
voidsetupCounterDeserializer(ObjectDeserializer<BuilderT> op)java.lang.StringtoString()longtotal()Required - API name:totalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forCounter
-
-
Constructor Details
-
Counter
-
-
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
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupCounterDeserializer
protected static <BuilderT extends Counter.AbstractBuilder<BuilderT>> void setupCounterDeserializer(ObjectDeserializer<BuilderT> op)
-