Hi I wanto to run a Watch with the disk space available in a node, but I dont know how to use this query:
GET _cat/nodes?h=h,diskAvail
in the context of the Watcher input, because this query has no body, no indices to use, nor timestamp.
How can I do this?
Example of a normal Watcher input
"input": {
"search": {
"request": {
"search_type": "query_then_fetch",
"indices": [
"index*"
],
"rest_total_hits_as_int": true,
"body": {
"size": 0,
"query": {
"bool": {
"filter": {
"range": {
"@timestamp": {
"gte": "{{ctx.trigger.scheduled_time}}||-5m",
"lte": "{{ctx.trigger.scheduled_time}}",
"format": "strict_date_optional_time||epoch_millis"
}
}
}
}
}
}
}
}
},````