Kibana monitor to execute job if hit disk space (self healing)

Hi can I know is it possible to elk stack to call a script or Jenkins job if it his 50 percents of disk space. Can share what i can start research on

It can call an API, but it cannot run a script.

can share details. How it can call API. Is it free. If have document is good to share