{
  "GlobalSettings": {
    "type": "dynamic"
  },
  "vectors": [
    {
      "URL": "$BaseURL.snowflakecomputing.com/api/v2/statements",
      "URLSetting": {
        "requestType": "post",
        "requestBody": "%7B%0A%20%20%22statement%22%3A%20%22select%20CURRENT_ORGANIZATION_NAME()%2C%20CURRENCY%2C%20sum(FREE_USAGE_BALANCE)%2C%20sum(CAPACITY_BALANCE)%2C%20sum(ON_DEMAND_CONSUMPTION_BALANCE)%2C%20sum(ROLLOVER_BALANCE)%20from%20SNOWFLAKE.ORGANIZATION_USAGE.REMAINING_BALANCE_DAILY%20where%20CONVERT_TIMEZONE(%27UTC%27%2C%20DATE)%3A%3ADATE%20%3D%20DATEADD(day%2C%20-1%2C%20CONVERT_TIMEZONE(%27UTC%27%2C%20CURRENT_TIMESTAMP())%3A%3ADATE)%20group%20by%201%2C%202%3B%22%2C%0A%20%20%22timeout%22%3A%2060%2C%0A%20%20%22warehouse%22%3A%20%22COMPUTE_WH%22%0A%7D",
        "requestHeaders": [
          "Authorization:Bearer $AuthToken",
          "Accept:application/json",
          "Content-Type:application/json",
          "X-Snowflake-Authorization-Token-Type:KEYPAIR_JWT"
        ]
      },
      "metrics": [
        {
          "mPath": "$.data[*]",
          "attribute": [
            {
              "name": "[2]",
              "index": 1,
              "operation": "none",
              "type": 1
            },
            {
              "name": "[3]",
              "index": 2,
              "operation": "none",
              "type": 1
            },
            {
              "name": "[4]",
              "index": 3,
              "operation": "none",
              "type": 1
            },
            {
              "name": "[5]",
              "index": 4,
              "operation": "none",
              "type": 1
            }
          ]
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.data[*][0]"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.data[*][1]"
        }
      ]
    }
  ]
}
