Class WatcherNodeStats
java.lang.Object
co.elastic.clients.elasticsearch.watcher.stats.WatcherNodeStats
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<WatcherNodeStats>Json deserializer forWatcherNodeStats -
Method Summary
Modifier and TypeMethodDescriptionfinal List<WatchRecordStats>The current executing watches metric gives insight into the watches that are currently being executed by Watcher.final ExecutionThreadPoolRequired - API name:execution_thread_poolfinal StringnodeId()Required - API name:node_idstatic WatcherNodeStatsfinal List<WatchRecordQueuedStats>Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final longRequired - The number of watches currently registered.final WatcherStateRequired - The current state of Watcher.
-
Field Details
-
_DESERIALIZER
Json deserializer forWatcherNodeStats
-
-
Method Details
-
of
public static WatcherNodeStats of(Function<WatcherNodeStats.Builder, ObjectBuilder<WatcherNodeStats>> fn) -
currentWatches
The current executing watches metric gives insight into the watches that are currently being executed by Watcher. Additional information is shared per watch that is currently executing. This information includes thewatch_id, the time its execution started and its current execution phase. To include this metric, themetricoption should be set tocurrent_watchesor_all. In addition you can also specify theemit_stacktraces=trueparameter, which adds stack traces for each watch that is being run. These stack traces can give you more insight into an execution of a watch.API name:
current_watches -
executionThreadPool
Required - API name:execution_thread_pool -
queuedWatches
Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources. If too many watches trigger concurrently and there isn't enough capacity to run them all, some of the watches are queued, waiting for the current running watches to finish.s The queued watches metric gives insight on these queued watches.To include this metric, the
metricoption should includequeued_watchesor_all.API name:
queued_watches -
watchCount
public final long watchCount()Required - The number of watches currently registered.API name:
watch_count -
watcherState
Required - The current state of Watcher.API name:
watcher_state -
nodeId
Required - API name:node_id -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupWatcherNodeStatsDeserializer
protected static void setupWatcherNodeStatsDeserializer(ObjectDeserializer<WatcherNodeStats.Builder> op)
-