Neon · Schema

ConsumptionHistoryPerProject

Project-level consumption metrics

DatabasesServerlessPostgresInfrastructureAuthenticationEdge

Properties

Name Type Description
projects array
pagination object
View JSON Schema on GitHub

JSON Schema

neon-consumptionhistoryperproject-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ConsumptionHistoryPerProject",
  "title": "ConsumptionHistoryPerProject",
  "type": "object",
  "description": "Project-level consumption metrics",
  "properties": {
    "projects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "project_id": {
            "type": "string",
            "description": "The project ID"
          },
          "periods": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "period_id": {
                  "type": "string",
                  "description": "The period identifier"
                },
                "consumption": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConsumptionMetric"
                  }
                }
              }
            }
          }
        }
      }
    },
    "pagination": {
      "$ref": "#/components/schemas/Pagination"
    }
  }
}