{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-developer-usage-out-schema.json",
  "title": "DeveloperUsageOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-developer-api-openapi.yml#/components/schemas/DeveloperUsageOut",
  "properties": {
    "summary": {
      "$ref": "#/$defs/DeveloperUsageSummaryOut"
    },
    "requests": {
      "items": {
        "$ref": "#/$defs/DeveloperRequestLogOut"
      },
      "type": "array",
      "title": "Requests"
    }
  },
  "type": "object",
  "required": [
    "summary"
  ],
  "$defs": {
    "DeveloperRequestLogOut": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "requestId": {
          "type": "string",
          "title": "Requestid"
        },
        "apiKeyId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Apikeyid"
        },
        "method": {
          "type": "string",
          "title": "Method"
        },
        "path": {
          "type": "string",
          "title": "Path"
        },
        "statusCode": {
          "type": "integer",
          "title": "Statuscode"
        },
        "durationMs": {
          "type": "integer",
          "title": "Durationms"
        },
        "resourceType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resourcetype"
        },
        "resourceId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resourceid"
        },
        "createdAt": {
          "type": "string",
          "title": "Createdat"
        }
      },
      "type": "object",
      "required": [
        "id",
        "requestId",
        "method",
        "path",
        "statusCode",
        "durationMs",
        "createdAt"
      ],
      "title": "DeveloperRequestLogOut"
    },
    "DeveloperUsageSummaryOut": {
      "properties": {
        "since": {
          "type": "string",
          "title": "Since"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "errors": {
          "type": "integer",
          "title": "Errors"
        },
        "errorRate": {
          "type": "number",
          "title": "Errorrate"
        },
        "rateLimited": {
          "type": "integer",
          "title": "Ratelimited"
        },
        "rateLimitRate": {
          "type": "number",
          "title": "Ratelimitrate"
        },
        "p95DurationMs": {
          "type": "integer",
          "title": "P95Durationms"
        },
        "byStatus": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Bystatus"
        }
      },
      "type": "object",
      "required": [
        "since",
        "total",
        "errors",
        "errorRate",
        "rateLimited",
        "rateLimitRate",
        "p95DurationMs"
      ],
      "title": "DeveloperUsageSummaryOut"
    }
  }
}