{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-paginated-audit-action-list-schema.json",
  "title": "PaginatedAuditActionList",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-audit-rules-api-openapi.yml#/components/schemas/PaginatedAuditActionList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "page_size": {
      "type": [
        "integer",
        "null"
      ]
    },
    "page": {
      "type": [
        "integer",
        "null"
      ]
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AuditAction"
      }
    }
  },
  "$defs": {
    "AuditAction": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "UUID of the triggered action"
        },
        "name": {
          "type": "string",
          "description": "Name of the action"
        },
        "status": {
          "type": "string",
          "description": "Status of the action"
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "The URL in the action"
        },
        "fired_at": {
          "type": "string",
          "format": "date-time",
          "description": "The fired timestamp of the action"
        },
        "rule_fired_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "audit_rule_id": {
          "type": [
            "integer",
            "null"
          ],
          "readOnly": true
        },
        "status_message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Message of the action"
        }
      },
      "required": [
        "audit_rule_id",
        "fired_at",
        "id",
        "name"
      ]
    }
  }
}