#1
|
|||
|
|||
![]()
I would like the Mirth service to send an HTTP POST heartbeat message every x number of minutes to a heartbeat monitoring service.
I'm having trouble figuring out how to set up a background loop process in Mirth. Something like this... setInterval(function(){postToHeartbeatMonitor()}, 120000); I've been checking the forums for a while now and haven't been able to find anything to help me accomplish this. Anyone have any ideas? Thanks in advance. |
#2
|
||||
|
||||
![]()
That's easy to do. Just set up a JavaScript Reader to handle the polling, and an HTTP Sender to dispatch the request. I'll attach a channel (for 3.0.3) to illustrate.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead? Nicholas Rupley Work: 949-237-6069 Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first. ![]()
|
#3
|
|||
|
|||
![]()
Thank you very much, this is exactly what I needed
![]() |
#4
|
|||
|
|||
![]()
How to write a monitor that will send a email if the Heartbeat stops?
|
![]() |
Thread Tools | |
Display Modes | |
|
|