feat(store): store maintenance windows for monitors and groups
Groups cover their subgroups; a recursive query resolves which windows apply to a monitor. Status page descriptions may be longer now that they are Markdown. Refs #71 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
c5f7005829
commit
259b3b8e05
6 files changed
+458
No files matched your search
@@ -123,6 +123,29 @@ type LegalDocument struct {
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type MaintenanceTarget struct {
|
||||
WindowID uuid.UUID
|
||||
OrgID uuid.UUID
|
||||
MonitorID *uuid.UUID
|
||||
GroupID *uuid.UUID
|
||||
}
|
||||
|
||||
type MaintenanceWindow struct {
|
||||
ID uuid.UUID
|
||||
OrgID uuid.UUID
|
||||
Title string
|
||||
Description string
|
||||
StartsAt time.Time
|
||||
DurationSeconds int32
|
||||
TimeZone string
|
||||
Recurrence string
|
||||
Every int32
|
||||
Weekdays []int16
|
||||
Until *time.Time
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Membership struct {
|
||||
OrgID uuid.UUID
|
||||
UserID uuid.UUID
|
||||
|
||||
Reference in new issue
Block a user