{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_"
  },
  "vectors": [
    
	{
      "URL": "$BaseURL/timeSeries?aggregation.crossSeriesReducer=REDUCE_NONE&filter=metric.type=\"firebasedatabase.googleapis.com/io/database_load\"&aggregation.perSeriesAligner=ALIGN_MEAN&interval.startTime={$start_time}&interval.endTime={$end_time}&aggregation.alignmentPeriod=60s",
      "URLSetting": {
        "requestType": "get"
      },
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.project_id"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.location",
          "replaceVectorKey": "locationKey"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.location == 'locationKey')].table_name",
          "replaceVectorKey": "tableKey"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*][?(@.resource.labels.location == 'locationKey' && @.resource.labels.table_name== 'tableKey')].metric.labels.type",
           "replaceVectorKey": "typeKey"
        }
      ],
      "metrics": [
        {
          "mPath": "$.timeSeries[*][?(@.resource.labels.location == 'locationKey' && @.resource.labels.table_name == 'tableKey' && @.metric.labels.type == 'typeKey')].points[0].value.",
          "operation": "none",
          "attribute": [
            {
              "operation": "none",
              "name": "doubleValue",
              "index": 1,
              "type": 1
            }
          ]
        }
      ]
    }
  ]
}
