How can I set threshold in Pie chart panel and if threshold is breached then alert (in mail) should be triggered

How can I set threshold in Pie chart panel and if threshold is breached then alert (in mail) should be triggered
Like suppose I am running some jobs, If Fail percentage of Jobs is more than 50% then an alert should through mail should be triggered to a mail id

Like Here…
Passed Jobs: 96%
Failed Jobs : 4%
However if the Failed Jobs are more than 50% an alert should be sent to respective mail id

image

Did you find a solution of your problem ?
I have the same one, and try to get solution now. I’ll be gratefull if you share your experience.