I have a job that monitors the status of a remote service. If the service ever changes I would like an email that includes the state of the service.
I've created a job that is a service monitor. If the service status changes, then I would just like an email.
Job trigger is "Process - Service" when the "Service status changes"
I then have a flow that sends an email notification. It currently looks like:
{JOB(Active|Status)}
{JOB(Active|Result)}
{TRIGGER(Active|LastTrigger|Id)}
{TRIGGER(Active|LastTrigger,Service.Result.DisplayName)}
{TRIGGER(Active|LastTrigger,Service.Result.State)}
Wen I get the email, it looks like:
Running
Success
No Trigger specified (perhaps Job is not created yet?)
No Trigger specified (perhaps Job is not created yet?)
No Trigger specified (perhaps Job is not created yet?)
How do I get the state of the current service?
Thanks,
Eric