Skip to content

qie.getChannelStats

Signature: qie.getChannelStats()

Returns: JSON Message channelStats - a JSON message with the information about the message processing times

Retrieves channel stats giving information on the average time it is taking each message to be processed on a node.

Parameters

None

Example

var jsonStats = qie.getChannelStats(); // JSON Message
/* e.g. jsonStats.formatJSON(3)
{
    "channelName": "JSON forever",
    "channelId": "ff80818195af159c0196ee3f0f0d017a",
    "statsEnabled": true,
    "rollingAverageMax": 50000,
    "rollingAverageTimeInSeconds": 30,
    "nodeCounts": [
       {
          "index": 1,
          "description": "Source Node Queue",
          "count": 1,
          "average": 30,
          "max": 30,
          "rollingCount": 1,
          "rollingAverage": 30,
          "rollingMax": 30
       },
       {
          "index": 2,
          "description": "2.Mapping",
          "count": 1,
          "average": 9,
          "max": 9,
          "rollingCount": 1,
          "rollingAverage": 9,
          "rollingMax": 9
       },
       {
          "index": 3,
          "description": "3.Discard",
          "count": 1,
          "average": 49,
          "max": 49,
          "rollingCount": 1,
          "rollingAverage": 49,
          "rollingMax": 49
       }
    ]
 }
*/