File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,19 @@ type InstanceSetting struct {
478
478
Value string `json:"value"`
479
479
}
480
480
481
+ // InstanceSnapshotSchedule: instance snapshot schedule.
482
+ type InstanceSnapshotSchedule struct {
483
+ FrequencyHours int32 `json:"frequency_hours"`
484
+
485
+ RetentionDays int32 `json:"retention_days"`
486
+
487
+ Enabled bool `json:"enabled"`
488
+
489
+ NextUpdate * time.Time `json:"next_update"`
490
+
491
+ LastRun * time.Time `json:"last_run"`
492
+ }
493
+
481
494
// Volume: volume.
482
495
type Volume struct {
483
496
// Type: type of volume where data is stored.
@@ -623,6 +636,9 @@ type Instance struct {
623
636
// CreatedAt: creation date (must follow the ISO 8601 format).
624
637
CreatedAt * time.Time `json:"created_at"`
625
638
639
+ // SnapshotSchedule: snapshot schedule configuration of the Database Instance.
640
+ SnapshotSchedule * InstanceSnapshotSchedule `json:"snapshot_schedule"`
641
+
626
642
// Region: region the Database Instance is in.
627
643
Region scw.Region `json:"region"`
628
644
}
You can’t perform that action at this time.
0 commit comments