{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_"
  },
  "vectors": [
    {
      "URL": "$BaseURL/api/v2/metrics/query?metricSelector=builtin%3Ahost.dns.singleQueryTimeByDnsIp&from={$start_time}&to={$end_time}",
      "URLSetting": {
        "requestType": "get"
      },
      "path": [
        {
          "isPartOfHierarchy": true
        }
      ],
      "metrics": [
        {
          "mMappedPath": "$.result[0].data[*].['dimensions', 'values'][*]",
          "operation": "none",
          "attribute": [
            {
              "operation": "none",
              "name": "values[0]",
              "useMappedPathQuery": true,
              "index": 1,
              "type": 1
            }
          ]
        }
      ]
    },
{
      "URL": "$BaseURL/api/v2/metrics/query?metricSelector=builtin%3Ahost.dns.singleQueryTimeByHost%3Aavg%3Anames%3Amerge%28%22dt.entity.host%22%29%2Cbuiltin%3Ahost.dns.singleQueryTimeByHost%3Amin%3Anames%3Amerge%28%22dt.entity.host%22%29%2Cbuiltin%3Ahost.dns.singleQueryTimeByHost%3Amax%3Anames%3Amerge%28%22dt.entity.host%22%29&from={$start_time}&to={$end_time}",
      "URLSetting": {
        "requestType": "get"
      },
      "path": [
        {
          "isPartOfHierarchy": true
        }
      ],
      "metrics": [
        {
          "mMappedPath": "$.result[0].data[*].['dimensions', 'values'][*]",
          "operation": "none",
          "attribute": [
            {
              "operation": "none",
              "name": "values[0]",
              "useMappedPathQuery": true,
              "index": 2,
              "type": 1
            }
          ]
        },
        {
          "mMappedPath": "$.result[1].data[*].['dimensions', 'values'][*]",
          "operation": "none",
          "attribute": [
            {
              "operation": "none",
              "name": "values[0]",
              "useMappedPathQuery": true,
              "index": 3,
              "type": 1
            }
          ]
        },
        {
          "mMappedPath": "$.result[2].data[*].['dimensions', 'values'][*]",
          "operation": "none",
          "attribute": [
            {
              "operation": "none",
              "name": "values[0]",
              "useMappedPathQuery": true,
              "index": 4,
              "type": 1
            }
          ]
        },
        {
          "attribute": [
            {
              "name": "values",
              "index": 5,
              "type": 2,
              "defValue": 1
            }
          ]
        }
      ]
    }
    ]
}
