@datalayer/core
Version:
**Datalayer Core**
93 lines (91 loc) • 1.56 kB
TypeScript
/**
* Runtime snapshot from API.
*/
export interface IAPIRuntimeSnapshot {
/**
* Snapshot UID
*/
uid: string;
/**
* Snapshot name
*/
name: string;
/**
* Snapshot description
*/
description: string;
/**
* Snapshot environment
*/
environment: string;
/**
* Snapshot metadata
*/
metadata: Record<string, any>;
/**
* Snapshot size in bytes
*/
size: number;
/**
* Latest update time of the snapshot
*/
updated_at: string;
/**
* Snapshot format
*/
format: string;
/**
* Snapshot format version
*/
format_version: string;
/**
* Snapshot status
*/
status: string;
}
/**
* Runtime snapshot model.
*/
export interface IRuntimeSnapshot {
/**
* Snapshot UID
*/
id: string;
/**
* Snapshot name
*/
name: string;
/**
* Snapshot description
*/
description: string;
/**
* Snapshot environment
*/
environment: string;
/**
* Snapshot metadata
*/
metadata: Record<string, any>;
/**
* Snapshot size in bytes
*/
size: number;
/**
* Latest update time of the snapshot
*/
updatedAt: Date;
/**
* Snapshot format
*/
format: string;
/**
* Snapshot format version
*/
formatVersion: string;
/**
* Snapshot status
*/
status: string;
}
export declare function asRuntimeSnapshot(s: IAPIRuntimeSnapshot): IRuntimeSnapshot;