Skip to content

Commit

Permalink
feat(maintenance): new type data for maintenance related events
Browse files Browse the repository at this point in the history
  • Loading branch information
yohann-bacha committed Sep 15, 2023
1 parent 7219d49 commit ebbc2fa
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions events_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,11 @@ func (ev *EventStackChangedType) String() string {

// Database maintenance planned
type EventPlanDatabaseMaintenancedTypeData struct {
AddonName string `json:"addon_name"`
MaintenanceID string `json:"maintenance_id"`
AddonName string `json:"addon_name"`
MaintenanceID string `json:"maintenance_id"`
MaintenanceWindowInHours int `json:"maintenance_window_in_hours"`
MaintenanceType string `json:"maintenance_type"`
NextMaintenanceWindow time.Time `json:"next_maintenance_window"`
}

type EventPlanDatabaseMaintenanceType struct {
Expand All @@ -883,8 +886,11 @@ func (ev *EventPlanDatabaseMaintenanceType) Who() string {

// Database maintenance started
type EventStartDatabaseMaintenanceTypeData struct {
AddonName string `json:"addon_name"`
MaintenanceID string `json:"maintenance_id"`
AddonName string `json:"addon_name"`
MaintenanceID string `json:"maintenance_id"`
MaintenanceWindowInHours int `json:"maintenance_window_in_hours"`
MaintenanceType string `json:"maintenance_type"`
NextMaintenanceWindow time.Time `json:"next_maintenance_window"`
}

type EventStartDatabaseMaintenanceType struct {
Expand All @@ -905,8 +911,11 @@ func (ev *EventStartDatabaseMaintenanceType) Who() string {

// Database maintenance completed
type EventCompleteDatabaseMaintenanceTypeData struct {
AddonName string `json:"addon_name"`
MaintenanceID string `json:"maintenance_id"`
AddonName string `json:"addon_name"`
MaintenanceID string `json:"maintenance_id"`
MaintenanceWindowInHours int `json:"maintenance_window_in_hours"`
MaintenanceType string `json:"maintenance_type"`
NextMaintenanceWindow time.Time `json:"next_maintenance_window"`
}

type EventCompleteDatabaseMaintenanceType struct {
Expand Down

0 comments on commit ebbc2fa

Please sign in to comment.