{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_",
    "commonReplaceChars": "/"
  },
  "vectors": [
    {
      "URL": "$BaseURL/providers/microsoft.insights/metrics?api-version={$apiVersion}&metricnames=cpu_percent%2Cphysical_data_read_percent%2Clog_write_percent%2Cstorage%2Cconnection_successful%2Cconnection_failed%2Cblocked_by_firewall%2Csessions_count%2Callocated_data_storage&timespan={$start_time}/{$end_time}",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.value[0].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "average",
              "index": 1,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[1].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "average",
              "index": 2,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[2].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "average",
              "index": 3,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[3].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "average",
              "index": 4,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[4].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 5,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[5].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 6,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[6].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 7,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[7].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "total",
              "index": 8,
              "type": 1,
              "defValue": 0
            }
          ]
        },
        {
          "mPath": "$.value[8].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "average",
              "index": 9,
              "type": 1,
              "defValue": 0
            }
          ]
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.resourceregion"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.value[0].id",
          "splitChar": "/",
          "pickIndex": "4"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.value[0].id",
          "splitChar": "/",
          "pickIndex": "8"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.value[0].id",
          "splitChar": "/",
          "pickIndex": "10"
        }
      ]
    }
  ]
}
