web stats
Connector Statistics via API? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2018, 07:56 AM
pldugan pldugan is offline
Mirth Newb
 
Join Date: Aug 2018
Posts: 8
pldugan is on a distinguished road
Default Connector Statistics via API?

I am trying to determine the number of queued messages for any given connector in a channel. The "Channel Statistics" only shows the entire channel and doesn't split out the individual destinations. Is there a way via the API that I can determine the number of queued messages for each destination per channel?
Reply With Quote
  #2  
Old 09-09-2018, 10:42 PM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 835
siddharth is on a distinguished road
Default

Use channelUtil.

channelUtil.getQueuedCount('channelName', metaDataID);

http://javadocs.mirthcorp.com/connec...va.lang.Number)
__________________
HL7v2.7 Certified Control Specialist!
Reply With Quote
  #3  
Old 09-17-2018, 08:17 AM
pldugan pldugan is offline
Mirth Newb
 
Join Date: Aug 2018
Posts: 8
pldugan is on a distinguished road
Default

The "channelUtil" doesn't appear when displaying the client APIs (https://localhost:8443/api/#/) I was able to use the ChannelStatuses though and got the information needed.

I am calling the API via a dotnet CORE application and converting the response xml into an object that I can query for the names and queue counts.
Reply With Quote
Reply

Tags
destinations, queued messages, statistics

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 02:01 AM.


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