feat: orchestrate service backups
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
import type { CloudlyBackupManager, IBackupRecordData } from './classes.backupmanager.js';
|
||||
|
||||
@plugins.smartdata.managed()
|
||||
export class BackupRecord extends plugins.smartdata.SmartDataDbDoc<
|
||||
BackupRecord,
|
||||
IBackupRecordData,
|
||||
CloudlyBackupManager
|
||||
> {
|
||||
@plugins.smartdata.unI()
|
||||
public id!: string;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public serviceId!: string;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public serviceName?: string;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public clusterId?: string;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public status!: IBackupRecordData['status'];
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public trigger!: IBackupRecordData['trigger'];
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public snapshots!: IBackupRecordData['snapshots'];
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public createdAt!: number;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public updatedAt!: number;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public completedAt?: number;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public requestedBy?: string;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public errorText?: string;
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public restoreHistory?: IBackupRecordData['restoreHistory'];
|
||||
|
||||
@plugins.smartdata.svDb()
|
||||
public tags?: Record<string, string>;
|
||||
}
|
||||
Reference in New Issue
Block a user