xpack.watcher.statsedit

client.xpack.watcher.stats({
  metric: '_all' | 'queued_watches' | 'current_watches' | 'pending_watches',
  metric: '_all' | 'queued_watches' | 'current_watches' | 'pending_watches',
  emit_stacktraces: boolean
})

Reference

metric

'_all' | 'queued_watches' | 'current_watches' | 'pending_watches' - Controls what additional stat metrics should be include in the response

metric

'_all' | 'queued_watches' | 'current_watches' | 'pending_watches' - Controls what additional stat metrics should be include in the response

emit_stacktraces or emitStacktraces

boolean - Emits stack traces of currently running watches