I want to create a watcher to trigger every day to check whether there's any failed snapshot on that day. I want to use the HTTP input with the endpoint: /_snapshot/s3-repository/_all.
However, the API seems to return all the snapshot history. What parameter could I pass into the API to filter N latest snapshots, and status=FAILED if possible? I cannot find the API docs anywhere.
Thanks in advance.