{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-database-usage-list-result-schema.json",
  "title": "DatabaseUsageListResult",
  "description": "The response of a DatabaseUsage list operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-databaseusages-api-openapi.yml#/components/schemas/DatabaseUsageListResult",
  "type": "object",
  "properties": {
    "value": {
      "type": "array",
      "description": "The DatabaseUsage items on this page",
      "items": {
        "$ref": "#/$defs/DatabaseUsage"
      }
    },
    "nextLink": {
      "type": "string",
      "format": "uri",
      "description": "The link to the next page of items"
    }
  },
  "required": [
    "value"
  ],
  "$defs": {
    "DatabaseUsage": {
      "type": "object",
      "description": "Usage metric of a database.",
      "properties": {
        "properties": {
          "$ref": "#/$defs/DatabaseUsageProperties",
          "description": "Resource properties.",
          "x-ms-client-flatten": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ProxyResource"
        }
      ]
    },
    "DatabaseUsageProperties": {
      "type": "object",
      "description": "Properties of a database usage.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "User-readable name of the metric.",
          "readOnly": true
        },
        "currentValue": {
          "type": "number",
          "format": "double",
          "description": "Current value of the metric.",
          "readOnly": true
        },
        "limit": {
          "type": "number",
          "format": "double",
          "description": "Boundary value of the metric.",
          "readOnly": true
        },
        "unit": {
          "type": "string",
          "description": "Unit of the metric.",
          "readOnly": true
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}