{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_",
    "commonReplaceChars": "/"
  },
  "vectors": [
    {
      "URL": "$BaseURL/providers/microsoft.insights/metrics?api-version={$apiVersion}&metricnames=Ingress%2CEgress%2CSuccessServerLatency%2CSuccessE2ELatency%2CAvailability&timespan={$start_time}/{$end_time}",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.value[0].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 1,
              "type": 1,
              "operation": "none",
              "defValue": 56,
              "convertTo": "kb",
              "convertFrom": "bytes"
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[1].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 2,
              "type": 1,
              "operation": "none",
              "defValue": 56,
              "convertTo": "kb",
              "convertFrom": "bytes"
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[2].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 3,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[3].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 4,
              "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"
        }
      ]
    }
  ]
}
