Background: We are using New Relic API for sending logs information to new Relic from Mirth connect.
Requirement: We want to trigger Alerts when we don’t receive any logs from Mirth into New Relic, based on below conditions:
-
From 6 AM Monday thru 10 PM Friday, we should have alert set to 30 mins. ( means if we are not receiving any messages from Mirth to New Relic for 30 mins, an alert should be triggered)
-
From 10:01 PM Friday thru 5:59 AM Monday we should have the alert set to 1 hour, as messages flow would be less. ( means if we are not receiving any messages from Mirth to New Relic for 1 hour, an alert should be triggered).
So this alert would vary based on time and day of week.
Question: What would be the best approach to apply these alerts using NRQL query. I tried using baseline query, but somehow those alerts are not triggered as per requirement. Please advise.