{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-retention-period-schema.json",
  "title": "RetentionPeriod",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-audit-api-openapi.yml#/components/schemas/RetentionPeriod",
  "required": [
    "number",
    "units"
  ],
  "type": "object",
  "properties": {
    "number": {
      "type": "integer",
      "description": "The number of units for the retention period.",
      "format": "int32"
    },
    "units": {
      "type": "string",
      "description": "The unit of time that the retention period is measured in.",
      "enum": [
        "NANOS",
        "MICROS",
        "MILLIS",
        "SECONDS",
        "MINUTES",
        "HOURS",
        "HALF_DAYS",
        "DAYS",
        "WEEKS",
        "MONTHS",
        "YEARS",
        "DECADES",
        "CENTURIES",
        "MILLENNIA",
        "ERAS",
        "FOREVER"
      ]
    }
  }
}