Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Connector Statistics via API? (http://www.mirthcorp.com/community/forums/showthread.php?t=218570)

pldugan 09-07-2018 07:56 AM

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?

siddharth 09-09-2018 10:42 PM

Use channelUtil.

channelUtil.getQueuedCount('channelName', metaDataID);

http://javadocs.mirthcorp.com/connec...va.lang.Number)

pldugan 09-17-2018 08:17 AM

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.


All times are GMT -8. The time now is 12:34 AM.

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