Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaintenanceCmd ¶
MaintenanceCmd manages maintenance schedules for a database.
Types ¶
type MaintenanceSchedule ¶
type MaintenanceSchedule struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
Enabled bool `header:"enabled" json:"enabled"`
Required bool `header:"required" json:"required"`
Frequency string `header:"frequency" json:"frequency"`
Day string `header:"day" json:"day"`
Week string `header:"week" json:"week"`
HourUTC int `header:"hour_utc" json:"hour_utc"`
DurationHours int `header:"duration_hours" json:"duration_hours"`
NextWindow int64 `header:"next_window,timestamp(ms|utc|human)" json:"next_window"`
LastWindow int64 `header:"last_window,timestamp(ms|utc|human)" json:"last_window"`
PendingVitessVersion string `header:"pending_vitess" json:"pending_vitess"`
PendingMySQLVersion string `header:"pending_mysql" json:"pending_mysql"`
ExpiresAt *int64 `header:"expires_at,timestamp(ms|utc|human)" json:"expires_at"`
DeadlineAt *int64 `header:"deadline_at,timestamp(ms|utc|human)" json:"deadline_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
MaintenanceSchedule is the human/JSON/CSV view of a maintenance schedule.
func (*MaintenanceSchedule) MarshalCSVValue ¶
func (s *MaintenanceSchedule) MarshalCSVValue() interface{}
func (*MaintenanceSchedule) MarshalJSON ¶
func (s *MaintenanceSchedule) MarshalJSON() ([]byte, error)
type MaintenanceWindow ¶
type MaintenanceWindow struct {
ID string `header:"id" json:"id"`
StartedAt *int64 `header:"started_at,timestamp(ms|utc|human)" json:"started_at"`
FinishedAt *int64 `header:"finished_at,timestamp(ms|utc|human)" json:"finished_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
UpdatedAt int64 `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
// contains filtered or unexported fields
}
MaintenanceWindow is the human/JSON/CSV view of a maintenance window.
func (*MaintenanceWindow) MarshalCSVValue ¶
func (w *MaintenanceWindow) MarshalCSVValue() interface{}
func (*MaintenanceWindow) MarshalJSON ¶
func (w *MaintenanceWindow) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.