Class WatcherNodeStats.Builder
- All Implemented Interfaces:
WithJson<WatcherNodeStats.Builder>,ObjectBuilder<WatcherNodeStats>
- Enclosing class:
- WatcherNodeStats
WatcherNodeStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aWatcherNodeStats.final WatcherNodeStats.BuildercurrentWatches(WatchRecordStats value, WatchRecordStats... values) The current executing watches metric gives insight into the watches that are currently being executed by Watcher.final WatcherNodeStats.BuilderThe current executing watches metric gives insight into the watches that are currently being executed by Watcher.final WatcherNodeStats.BuildercurrentWatches(List<WatchRecordStats> list) The current executing watches metric gives insight into the watches that are currently being executed by Watcher.final WatcherNodeStats.BuilderRequired - API name:execution_thread_poolfinal WatcherNodeStats.BuilderRequired - API name:execution_thread_poolfinal WatcherNodeStats.BuilderRequired - API name:node_idfinal WatcherNodeStats.BuilderqueuedWatches(WatchRecordQueuedStats value, WatchRecordQueuedStats... values) Watcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.final WatcherNodeStats.BuilderWatcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.final WatcherNodeStats.BuilderWatcher moderates the execution of watches such that their execution won't put too much pressure on the node and its resources.protected WatcherNodeStats.Builderself()final WatcherNodeStats.BuilderwatchCount(long value) Required - The number of watches currently registered.final WatcherNodeStats.BuilderwatcherState(WatcherState value) Required - The current state of Watcher.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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_watchesAdds all elements of
listtocurrentWatches. -
currentWatches
public final WatcherNodeStats.Builder currentWatches(WatchRecordStats value, WatchRecordStats... values) 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_watchesAdds one or more values to
currentWatches. -
currentWatches
public final WatcherNodeStats.Builder currentWatches(Function<WatchRecordStats.Builder, ObjectBuilder<WatchRecordStats>> fn) 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_watchesAdds a value to
currentWatchesusing a builder lambda. -
executionThreadPool
Required - API name:execution_thread_pool -
executionThreadPool
public final WatcherNodeStats.Builder executionThreadPool(Function<ExecutionThreadPool.Builder, ObjectBuilder<ExecutionThreadPool>> fn) 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_watchesAdds all elements of
listtoqueuedWatches. -
queuedWatches
public final WatcherNodeStats.Builder queuedWatches(WatchRecordQueuedStats value, WatchRecordQueuedStats... values) 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_watchesAdds one or more values to
queuedWatches. -
queuedWatches
public final WatcherNodeStats.Builder queuedWatches(Function<WatchRecordQueuedStats.Builder, ObjectBuilder<WatchRecordQueuedStats>> fn) 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_watchesAdds a value to
queuedWatchesusing a builder lambda. -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<WatcherNodeStats.Builder>
-
build
Builds aWatcherNodeStats.- Specified by:
buildin interfaceObjectBuilder<WatcherNodeStats>- Throws:
NullPointerException- if some of the required fields are null.
-