{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sunbird-ai/json-schema/sunbird-ai-summary-response-schema.json",
  "title": "SummaryResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/sunbird-ai-api-openapi.json#/components/schemas/SummaryResponse",
  "properties": {
    "start": {
      "type": "string",
      "title": "Start"
    },
    "end": {
      "type": "string",
      "title": "End"
    },
    "total_spend": {
      "type": "number",
      "title": "Total Spend"
    },
    "runtime_available": {
      "type": "boolean",
      "title": "Runtime Available"
    },
    "storage_available": {
      "type": "boolean",
      "title": "Storage Available"
    },
    "avg_daily_spend": {
      "type": "number",
      "title": "Avg Daily Spend"
    },
    "total_runtime_ms": {
      "type": "integer",
      "title": "Total Runtime Ms"
    },
    "avg_daily_runtime_ms": {
      "type": "number",
      "title": "Avg Daily Runtime Ms"
    },
    "total_storage_gb": {
      "type": "number",
      "title": "Total Storage Gb"
    },
    "avg_storage_gb": {
      "type": "number",
      "title": "Avg Storage Gb"
    },
    "active_endpoints": {
      "type": "integer",
      "title": "Active Endpoints"
    },
    "active_modal_apps": {
      "type": "integer",
      "title": "Active Modal Apps"
    },
    "active_instances": {
      "type": "integer",
      "title": "Active Instances",
      "default": 0
    },
    "active_services": {
      "type": "integer",
      "title": "Active Services",
      "default": 0
    },
    "highest_cost_endpoint": {
      "anyOf": [
        {
          "$ref": "#/$defs/HighestCost"
        },
        {
          "type": "null"
        }
      ]
    },
    "highest_cost_platform": {
      "anyOf": [
        {
          "$ref": "#/$defs/HighestCost"
        },
        {
          "type": "null"
        }
      ]
    },
    "num_days": {
      "type": "integer",
      "title": "Num Days"
    },
    "warnings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Warnings"
    }
  },
  "type": "object",
  "required": [
    "start",
    "end",
    "total_spend",
    "runtime_available",
    "storage_available",
    "avg_daily_spend",
    "total_runtime_ms",
    "avg_daily_runtime_ms",
    "total_storage_gb",
    "avg_storage_gb",
    "active_endpoints",
    "active_modal_apps",
    "num_days"
  ],
  "$defs": {
    "HighestCost": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "cost": {
          "type": "number",
          "title": "Cost"
        }
      },
      "type": "object",
      "required": [
        "name",
        "cost"
      ],
      "title": "HighestCost"
    }
  }
}