{
  "GlobalSettings": {
    "type": "dynamic"
  },
  "vectors": [
    {
      "URL": "$BaseURL/api/channels/",
      "urlId": 1,
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$[*].node",
          "replaceVectorKey": "channel"
        }
      ],
      "metrics": [
        {
          "mPath": "$[?(@.node == 'channel')].",
          "attribute": [
            {
              "name": "acks_uncommitted",
              "index": 1,
              "type": 1
            },
            {
              "name": "consumer_count",
              "index": 2,
              "type": 1
            },
            {
              "name": "confirm",
              "index": 3,
              "type": 1,
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "pValue": "false",
                    "updatedValue": 0,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "true",
                    "updatedValue": 1,
                    "useAsRegex": false
                  }
                ]
              }
            },
            {
              "name": "messages_unacknowledged",
              "index": 4,
              "type": 1
            },
            {
              "name": "messages_uncommitted",
              "index": 5,
              "type": 1
            },
            {
              "name": "messages_unconfirmed",
              "index": 6,
              "type": 1
            },
            {
              "name": "prefetch_count",
              "index": 7,
              "type": 1
            },
            {
              "name": "reductions",
              "index": 8,
              "type": 1
            }
          ]
        },
        {
          "mPath": "$.[?(@.node == 'channel')].message_stats.",
          "attribute": [
            {
              "name": "publish",
              "index": 9,
              "type": 1
            },
            {
              "name": "redeliver",
              "index": 10,
              "type": 1
            },
            {
              "name": "return_unroutable",
              "index": 11,
              "type": 1
            }
          ]
        }
      ]
    }
  ]
}
