{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-batch-job-status-dto-schema.json",
  "title": "batchJobStatusDto",
  "description": "Batch job status DTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-batchjob-api-openapi.yml#/components/schemas/batchJobStatusDto",
  "type": "object",
  "properties": {
    "jobName": {
      "type": "string",
      "description": "Spring Batch Job name - ReindexJob or GraphCleaningJob"
    },
    "startDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the batch job was started"
    },
    "endDate": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the batch job finished"
    },
    "startedBy": {
      "type": "string",
      "description": "ID of the user who started the batch job"
    },
    "reindexType": {
      "type": "string",
      "enum": [
        "FULL",
        "INCREMENTAL"
      ],
      "description": "Type of reindex: full or incremental"
    },
    "executionRound": {
      "type": "integer",
      "format": "int32",
      "description": "Job execution round"
    },
    "linesRead": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of resources read during job execution"
    },
    "linesSent": {
      "type": "integer",
      "format": "int64",
      "description": "Total number of resources written during job execution"
    },
    "status": {
      "type": "string",
      "description": "Current status of the batch job (e.g. STARTED, COMPLETED, FAILED)"
    }
  }
}