We currently have a monitoring cluster setup on elastic cloud. It has a page, at URL
app/monitoring#/elasticsearch/indices/<name> that shows stats on the index, including index latency.
What API can I hit to build a watcher alert of that value? Ideally I'd like to get alerted when it is above a threshold.
I've looked at this, https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html, but it looks like
index_time_in_millis is the aggregated time spent indexing, not the current latency. I might be misinterpreting it, but the value I see is way too large to be the instantaneous value.