Announcement

Collapse
No announcement yet.

Connector Statistics via API?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    Use channelUtil.

    channelUtil.getQueuedCount('channelName', metaDataID);

    http://javadocs.mirthcorp.com/connec...va.lang.Number)
    HL7v2.7 Certified Control Specialist!

    Comment


    • #3
      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.

      Comment

      Working...
      X