{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_",
    "commonReplaceChars": "/"
  },
  "vectors": [
    {
      "URL": "$BaseURL/providers/microsoft.insights/metrics?api-version={$apiVersion}&metricnames=PacketsInDDoS%2CPacketsDroppedDDoS%2CPacketsForwardedDDoS%2CTCPPacketsInDDoS%2CTCPPacketsDroppedDDoS%2CTCPPacketsForwardedDDoS%2CUDPPacketsInDDoS%2CUDPPacketsDroppedDDoS%2CUDPPacketsForwardedDDoS%2CBytesInDDoS%2CBytesDroppedDDoS%2CBytesForwardedDDoS%2CTCPBytesInDDoS%2CTCPBytesDroppedDDoS%2CTCPBytesForwardedDDoS%2CUDPBytesInDDoS%2CUDPBytesDroppedDDoS%2CUDPBytesForwardedDDoS%2CIfUnderDDoSAttack%2CDDoSTriggerTCPPackets&timespan={$start_time}/{$end_time}",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.value[0].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 1,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[1].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 2,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[2].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 3,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[3].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 4,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[4].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 5,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[5].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 6,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[6].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 7,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[7].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 8,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[8].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 9,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[9].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 10,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[10].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 11,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[11].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 12,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[12].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 13,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[13].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 14,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[14].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 15,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[15].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 16,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[16].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 17,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[17].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 18,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[18].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 19,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[19].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 20,
              "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"
        }
      ]
    },
    {
      "URL": "$BaseURL/providers/microsoft.insights/metrics?api-version={$apiVersion}&metricnames=DDoSTriggerUDPPackets%2CDDoSTriggerSYNPackets&timespan={$start_time}/{$end_time}",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.value[0].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 21,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        },
        {
          "mPath": "$.value[1].timeseries[*].data[-1].",
          "attribute": [
            {
              "name": "maximum",
              "index": 22,
              "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"
        }
      ]
    }
  ]
}
