RestoreSnapshotJobInfo

Information of a snapshot restore job.

export interface RestoreSnapshotJobInfo {
  job_id: string;
  snapshot_name: string;
  db_name: string;
  collection_name: string;
  state: RestoreSnapshotState | keyof typeof RestoreSnapshotState;
  progress: number;
  reason: string;
  start_time: string;
  time_cost: string;
}

FIELDS:

  • job_id (string) -

    The restore job identifier.

  • snapshot_name (string) -

    The name of the snapshot being restored.

  • db_name (string) -

    The name of the database the snapshot belongs to.

  • collection_name (string) -

    The name of the collection being restored.

  • state (RestoreSnapshotState | keyof typeof RestoreSnapshotState) -

    The restore job state.

  • progress (number) -

    The restore progress percentage.

  • reason (string) -

    The failure reason when the restore failed.

  • start_time (string) -

    The start time of the restore job.

  • time_cost (string) -

    The elapsed time of the restore job.

Example

import { MilvusClient } from '@zilliz/milvus2-sdk-node';

const milvusClient = new MilvusClient({
    address: 'localhost:19530',
    token: 'root:Milvus',
});

const res = await milvusClient.listRestoreSnapshotJobs({
    collection_name: 'restored_collection',
});

console.log(res.jobs); // RestoreSnapshotJobInfo[]

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?