{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_",
    "commonReplaceChars": "/"
  },
  "vectors": [
    {
      "URL": "$BaseURL/timeSeries?aggregation.crossSeriesReducer=REDUCE_NONE&filter=metric.type=\"bigquery.googleapis.com/query/statement_scanned_bytes\"&aggregation.perSeriesAligner=ALIGN_RATE&interval.startTime={$start_time}&interval.endTime={$end_time}&aggregation.alignmentPeriod=21720s",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.timeSeries[*][?(@.resource.labels.location == 'locationID' && @.metric.labels.statement_type =='StmtType' && @.metric.labels.priority == 'priority')].points[-1].value.",
          "attribute": [
            {
              "name": "int64Value",
              "index": 1,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.project_id",
          "replaceVectorKey": "projectID"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.project_id=='projectID')].location",
          "replaceVectorKey": "locationID"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*][?(@.resource.labels.project_id=='projectID' && @.resource.labels.location == 'locationID')].metric.labels.statement_type",
          "replaceVectorKey": "StmtType"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*][?(@.resource.labels.project_id=='projectID' && @.resource.labels.location == 'locationID')].metric.labels[?(@.statement_type == 'StmtType')].priority",
          "replaceVectorKey": "priority"
        }
      ]
    },
    {
      "URL": "$BaseURL/timeSeries?aggregation.crossSeriesReducer=REDUCE_NONE&filter=metric.type=\"bigquery.googleapis.com/query/statement_scanned_bytes\"&aggregation.perSeriesAligner=ALIGN_RATE&interval.startTime={$start_time}&interval.endTime={$end_time}&aggregation.alignmentPeriod=21780s",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.timeSeries[*][?(@.resource.labels.location == 'locationID' && @.metric.labels.statement_type =='StmtType' && @.metric.labels.priority == 'priority')].points[-1].value.",
          "attribute": [
            {
              "name": "int64Value",
              "index": 2,
              "type": 1,
              "operation": "none",
              "defValue": 56
            }
          ],
          "operation": "none"
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.project_id",
          "replaceVectorKey": "projectID"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.project_id=='projectID')].location",
          "replaceVectorKey": "locationID"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*][?(@.resource.labels.project_id=='projectID' && @.resource.labels.location == 'locationID')].metric.labels.statement_type",
          "replaceVectorKey": "StmtType"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*][?(@.resource.labels.project_id=='projectID' && @.resource.labels.location == 'locationID')].metric.labels[?(@.statement_type == 'StmtType')].priority",
           "replaceVectorKey": "priority"
        }
      ]
    }
  ]
}
