{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_",
    "commonReplaceChars": "/"
  },
  "vectors": [
    {
      "URL": "$BaseURL/providers/microsoft.insights/metrics?api-version={$apiVersion}&metricnames=GatewayRequests%2CCategorizedGatewayRequests%2CNumActiveWorkers&timespan={$start_time}/{$end_time}",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.value[0].timeseries[*].data[0].",
          "attribute": [
            {
              "name": "total",
              "index": 1,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[1].timeseries[*].data[0].",
          "attribute": [
            {
              "name": "total",
              "index": 2,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[2].timeseries[*].data[0].",
          "attribute": [
            {
              "name": "total",
              "index": 3,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        }
		],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.resourceregion"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.value[*].id",
          "splitChar": "/",
          "pickIndex": "4"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.value[*].id",
          "splitChar": "/",
          "pickIndex": "8"
        }
      ]
    }
  ]
}
