{
  "GlobalSettings": {
    "type": "dynamic"
  },
  "vectors": [
    {
      "URL": "$BaseURL.snowflakecomputing.com/api/v2/statements",
      "URLSetting": {
        "requestType": "post",
        "requestBody": "%7B%0A%20%20%22statement%22%3A%20%22SELECT%20COALESCE(ORGANIZATION_NAME%2C%20%27UNKNOWN_ORGANIZATION%27)AS%20ORGANIZATION_NAME%2C%20COALESCE(REGION%2C%20%27UNKNOWN_REGION%27)%20AS%20REGION%2C%20COALESCE(ACCOUNT_NAME%2C%20%27UNKNOWN_ACCOUNT%27)%20AS%20ACCOUNT_NAME%2C%20COALESCE(SERVICE_TYPE%2C%20%27UNKNOWN_SERVICE%27)%20AS%20SERVICE_TYPE%2C%20sum(CREDITS_USED_COMPUTE)%2C%20sum(CREDITS_USED_CLOUD_SERVICES)%2C%20sum(CREDITS_ADJUSTMENT_CLOUD_SERVICES)%2C%20sum(CREDITS_USED)%2C%20sum(CREDITS_BILLED)%20from%20SNOWFLAKE.ORGANIZATION_USAGE.METERING_DAILY_HISTORY%20where%20USAGE_DATE%20%3D%20DATEADD(day%2C%20-1%2C%20current_date())%20group%20by%201%2C%202%2C%203%2C%204%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": "[4]",
              "index": 1,
              "operation": "none",
              "type": 1
            },
            {
              "name": "[5]",
              "index": 2,
              "operation": "none",
              "type": 1
            },
            {
              "name": "[6]",
              "index": 3,
              "operation": "none",
              "type": 1
            },
            {
              "name": "[7]",
              "index": 4,
              "operation": "none",
              "type": 1
            },
            {
              "name": "[8]",
              "index": 5,
              "operation": "none",
              "type": 1
            }
          ]
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.data[*][0]"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.data[*][1]"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.data[*][2]"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.data[*][3]"
        }
      ]
    }
  ]
}
