Thanks, @iamryan for following up! I have found the solution to my problem. I just need to configure the Health-rule so that an alert is triggered if the metric value is less than 1 at any given time. Since even if the task is not running, it will remain in the READY state in the Task Scheduler, with a value of 2, and for any other state, the value will be 0.
... View more