web stats
Channel Monitor - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2020, 12:05 AM
Mirthvu14 Mirthvu14 is offline
OBX.1 Kenobi
 
Join Date: Jan 2019
Posts: 40
Mirthvu14 is on a distinguished road
Default Channel Monitor

Hi,
I want to create a channel A that monitor my other channel B and C, with the help of the controller.

So I use:
Code:
var controller = com.mirth.connect.server.controllers.ControllerFactory.getFactory().createChannelController();


for each (destinationConnector in controller.getDeployedChannelById('mychannelId[0]').getDestinationConnectors().toArray()) {
 destinationConnector.getName()
}
1) How can I get the status (Error, Queued..) of each connector of the cannel B and C?

2) How can I get the ResponseDate of each connector of the cannel B and C?

Thanks a lot!
Reply With Quote
  #2  
Old 02-26-2020, 12:24 AM
Thoughts_Shared Thoughts_Shared is offline
OBX.2 Kenobi
 
Join Date: Dec 2016
Posts: 64
Thoughts_Shared is on a distinguished road
Default

MirthDB - Table name: D_MS"Channel_No". This contains the dashboard data. Hope this helps.
Reply With Quote
  #3  
Old 02-26-2020, 01:29 AM
Mirthvu14 Mirthvu14 is offline
OBX.1 Kenobi
 
Join Date: Jan 2019
Posts: 40
Mirthvu14 is on a distinguished road
Default

thanks a lot! It's a good idea!
But I prefer to use the controller\channelUtil and don't use the DB!

Last edited by Mirthvu14; 02-26-2020 at 01:34 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:51 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation