Class WatcherNodeStats

java.lang.Object
co.elastic.clients.elasticsearch.watcher.stats.WatcherNodeStats
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class WatcherNodeStats extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • currentWatches

      public final List<WatchRecordStats> 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 the watch_id, the time its execution started and its current execution phase. To include this metric, the metric option should be set to current_watches or _all. In addition you can also specify the emit_stacktraces=true parameter, 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

      public final ExecutionThreadPool executionThreadPool()
      Required - API name: execution_thread_pool
    • queuedWatches

      public final List<WatchRecordQueuedStats> 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 metric option should include queued_watches or _all.

      API name: queued_watches

    • watchCount

      public final long watchCount()
      Required - The number of watches currently registered.

      API name: watch_count

    • watcherState

      public final WatcherState watcherState()
      Required - The current state of Watcher.

      API name: watcher_state

    • nodeId

      public final String nodeId()
      Required - API name: node_id
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupWatcherNodeStatsDeserializer

      protected static void setupWatcherNodeStatsDeserializer(ObjectDeserializer<WatcherNodeStats.Builder> op)