{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/JobExecutionStatus",
  "title": "JobExecutionStatus",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "number",
      "description": "Unique identifier for each instance of the job."
    },
    "startTime": {
      "type": "string",
      "description": "Job execution start time in UTC format."
    },
    "endTime": {
      "type": "string",
      "description": "Job execution end time in UTC format."
    },
    "lastUpdated": {
      "type": "string",
      "description": "Last time the job's execution status was updated in UTC format."
    },
    "statusMessage": {
      "$ref": "#/components/schemas/ExecutionStatus",
      "description": "Displays status for overall steps that are part of the job."
    },
    "exitCode ExecutionStatus, optional)": {
      "type": "string",
      "description": "Final execution status for the job."
    },
    "createdTime": {
      "type": "string",
      "description": "Job creation time in UTC format."
    },
    "timeElapsed": {
      "type": "string",
      "description": "Time lapsed since the job execution started."
    },
    "stepExecutionStatuses": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StepExecutionStatus"
      },
      "description": "Status of each step within a job."
    }
  }
}