{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lium-io/json-schema/lium-io-backup-log-response-schema.json",
  "title": "BackupLogResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lium-io-openapi.json#/components/schemas/BackupLogResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "backup_config_id": {
      "type": "string",
      "format": "uuid",
      "title": "Backup Config Id"
    },
    "backup_volume_id": {
      "type": "string",
      "format": "uuid",
      "title": "Backup Volume Id"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "progress": {
      "type": "number",
      "title": "Progress"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "estimated_backup_size_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Backup Size Bytes"
    },
    "estimated_upload_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Upload Seconds"
    },
    "backup_estimate_warning_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Backup Estimate Warning Code"
    },
    "s3_verified_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "S3 Verified At"
    },
    "s3_content_length": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "S3 Content Length"
    },
    "s3_last_modified": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "S3 Last Modified"
    },
    "s3_etag": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "S3 Etag"
    },
    "backup_engine": {
      "type": "string",
      "title": "Backup Engine"
    },
    "snapshot_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Snapshot Id"
    },
    "result_quality": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result Quality"
    },
    "stage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stage"
    },
    "last_heartbeat_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Heartbeat At"
    },
    "total_files": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Files"
    },
    "processed_files": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Processed Files"
    },
    "total_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Bytes"
    },
    "processed_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Processed Bytes"
    },
    "deletion_state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deletion State"
    },
    "physical_cleanup_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Physical Cleanup At"
    },
    "status_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status Message"
    },
    "elapsed_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Elapsed Seconds"
    },
    "throughput_bytes_per_second": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Throughput Bytes Per Second"
    },
    "estimated_remaining_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Estimated Remaining Seconds"
    },
    "failure_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failure Reason",
      "description": "Why a FAILED backup failed, as `<code>: <detail>`. Codes: `heartbeat_timeout` (the node stopped reporting; says how long before the failure its last report was), `runner_interrupted` (the runner stopped while the node kept passing validation, e.g. an executor update), `cancel_timeout` (the node kept reporting but never honoured a cancel; says how long ago it was asked), `executor_error` (the node reported the failure; its message or exit code), `completion_rejected` (the node reported success without a snapshot), `dispatch_failed` (the backup could not be handed to the node). Null on non-failed backups, on backups failed before this field existed, and on the legacy engine."
    },
    "failed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failed At",
      "description": "When the backup was marked FAILED (UTC)."
    },
    "auto_created": {
      "type": "boolean",
      "title": "Auto Created",
      "description": "A Lium automatic backup, stored in the Lium bucket.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "id",
    "backup_config_id",
    "backup_volume_id",
    "status",
    "progress",
    "created_at",
    "backup_engine"
  ]
}