diff options
Diffstat (limited to '')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/models/snapshot-schedule.ts | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/models/snapshot-schedule.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/snapshot-schedule.ts new file mode 100644 index 000000000..af3b0f7c5 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/models/snapshot-schedule.ts @@ -0,0 +1,33 @@ +import { NgbDateStruct, NgbTimeStruct } from '@ng-bootstrap/ng-bootstrap'; + +export interface SnapshotSchedule { + fs?: string; + subvol?: string; + path: string; + rel_path?: string; + schedule: string; + retention?: Record<string, number> | string; + start: Date; + created: Date; + first?: string; + last?: string; + last_pruned?: string; + created_count?: number; + pruned_count?: number; + active: boolean; + status: 'Active' | 'Inactive'; +} + +export interface SnapshotScheduleFormValue { + directory: string; + startDate: NgbDateStruct; + startTime: NgbTimeStruct; + repeatInterval: number; + repeatFrequency: string; + retentionPolicies: RetentionPolicy[]; +} + +export interface RetentionPolicy { + retentionInterval: number; + retentionFrequency: string; +} |