
{
  "GlobalSettings": {
    "type": "dynamic"
  },
  "vectors": [
    {
      "URL": "$BaseURL/lag",
      "urlId": 1,
      "URLSetting": {
        "requestType": "get"
      },
      "path": [       
      {
          "isPartOfHierarchy": true,
          "query": "$.status.cluster",
          "replaceVectorKey": "processorKey"
        },
       {
          "isPartOfHierarchy": true,
          "query": "$.status[?(@.cluster == 'processorKey')].group",
          "replaceVectorKey": "groupValue"
        }
        
      ],
      "metrics": [
        {
          "mPath": "$.status",
          "attribute": [
            {
              "name": "[?(@.cluster == 'processorKey' && @.group=='groupValue')].totallag",
              "index": 1
            },
            {
              "name": "[?(@.cluster == 'processorKey' && @.group=='groupValue')].partition_count",
              "index": 2
            }
          ]
        }
      ]
    }
  ]
}
