The OperationModel describes the status of an ongoing or completed server operation.

OperationModel

interface OperationModel {
    completedOn?: null | Date;
    createdOn: Date;
    errorMessage?: null | string;
    fileId?: null | string;
    id: string;
    ingestionUnits?: null | number;
    operationType: string;
    percentComplete?: number;
    status: string;
}

Properties

completedOn?: null | Date

The timestamp when the operation completed or failed, in ISO 8601 format. Present only when status is Completed or Failed.

OperationModel

createdOn: Date

The timestamp when the operation was created, in ISO 8601 format.

OperationModel

errorMessage?: null | string

A message describing the error that caused the operation to fail. Present only when status is Failed.

OperationModel

fileId?: null | string

The identifier of the file being operated on.

OperationModel

id: string

The unique identifier for the operation.

OperationModel

ingestionUnits?: null | number

The number of ingestion units consumed by this operation. Present only when status is Completed for file ingestion operations.

OperationModel

operationType: string

The kind of action represented by this operation, such as uploading or deleting a file.

OperationModel

percentComplete?: number

The progress made by the operation, as a percentage (0-100).

OperationModel

status: string

The status of the operation.

  • Processing: The operation is in progress.
  • Completed: The operation finished successfully.
  • Failed: The operation failed. See error_message for details.

OperationModel