Conditions for event rule on script completion #17238
Unanswered
Azmodeszer
asked this question in
Q&A
Replies: 2 comments
-
I guess I'm doing something wrong with the condition logic, because I'm also trying to get notifications for the creation of journal entries:
If I leave the condition field blank, it works, of course, but if I want to restrict it to certain kinds... zilch. |
Beta Was this translation helpful? Give feedback.
0 replies
-
And another thing... how do I pass JSON parameters to the email script? The relevant portion of the script:
The action data in the Event Rule:
And yet the triggered email has subject "NetBox Notification" and body "Default Body". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create an event rule that triggers email notifications if a script/job that runs daily ends in a specific state/contains a specific string. What I can't figure out so far is the syntax/logic for the condition and how to correctly reference the script instance.
I've selected "Extras | script" as Object types and checked "Events: Job terminations".
The JSON in the condition is
With 13 being the ID of the script. To my most severe surprise this does not work. I'm not sure if I'm on the right track with referencing the script itself and not (somehow) the specific run instances?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions