{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_",
    "commonReplaceChars": "/"
  },
  "vectors": [
    {
      "URL": "$BaseURL/providers/microsoft.insights/metrics?api-version={$apiVersion}&metricnames=Percentage%20CPU%2CNetwork%20In%2CNetwork%20Out%2CDisk%20Read%20Bytes%2CDisk%20Write%20Bytes%2CDisk%20Read%20Operations%2FSec%2CDisk%20Write%20Operations%2FSec%2CCPU%20Credits%20Remaining%2CCPU%20Credits%20Consumed&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": "average", "index": 5, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[5].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 6, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[6].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 7, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[7].timeseries[*].data[-1].", "attribute": [{ "name": "average", "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[*].id", "splitChar": "/", "pickIndex": "4" },
        { "isPartOfHierarchy": true, "query": "$.value[*].id", "splitChar": "/", "pickIndex": "8" }
      ]
    },
    {
      "URL": "$BaseURL/providers/microsoft.insights/metrics?api-version={$apiVersion}&metricnames=Data%20Disk%20Read%20Bytes%2Fsec%2CData%20Disk%20Write%20Bytes%2Fsec%2CData%20Disk%20Read%20Operations%2FSec%2CData%20Disk%20Write%20Operations%2FSec%2CData%20Disk%20Queue%20Depth%2COS%20Disk%20Read%20Bytes%2Fsec%2COS%20Disk%20Write%20Bytes%2Fsec%2COS%20Disk%20Read%20Operations%2FSec%2COS%20Disk%20Write%20Operations%2FSec%2COS%20Disk%20Queue%20Depth%2CInbound%20Flows%2COutbound%20Flows&timespan={$start_time}/{$end_time}",
      "URLSetting": { "requestType": "get" },
      "metrics": [
        { "mPath": "$.value[0].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 10, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[1].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 11, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[2].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 12, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[3].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 13, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[4].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 14, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[5].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 15, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[6].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 16, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[7].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 17, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[8].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 18, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[9].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 19, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[10].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 20, "type": 1, "defValue": 0 }] },
        { "mPath": "$.value[11].timeseries[*].data[-1].", "attribute": [{ "name": "average", "index": 21, "type": 1, "defValue": 0 }] }
      ],
      "path": [
        { "isPartOfHierarchy": true, "query": "$.resourceregion" },
        { "isPartOfHierarchy": true, "query": "$.value[*].id", "splitChar": "/", "pickIndex": "4" },
        { "isPartOfHierarchy": true, "query": "$.value[*].id", "splitChar": "/", "pickIndex": "8" }
      ]
    }
  ]
}

