feat(alerting): add monitor alert groups with default routing
This commit is contained in:
1 parent
52819e64bb
commit
8544e5a585
26 files changed
+2938
-1473
No files matched your search
@@ -41,6 +41,19 @@ type AgentStorage struct {
|
||||
Modified time.Time
|
||||
}
|
||||
|
||||
type AlertGroup struct {
|
||||
ID uuid.UUID
|
||||
OrgID uuid.UUID
|
||||
Name string
|
||||
IsDefault bool
|
||||
}
|
||||
|
||||
type AlertGroupChannel struct {
|
||||
OrgID uuid.UUID
|
||||
GroupID uuid.UUID
|
||||
ChannelID uuid.UUID
|
||||
}
|
||||
|
||||
type AlertmanagerAlert struct {
|
||||
OrgID uuid.UUID
|
||||
Fingerprint string
|
||||
@@ -214,6 +227,12 @@ type Monitor struct {
|
||||
GroupID *uuid.UUID
|
||||
}
|
||||
|
||||
type MonitorAlertGroup struct {
|
||||
OrgID uuid.UUID
|
||||
MonitorID uuid.UUID
|
||||
GroupID uuid.UUID
|
||||
}
|
||||
|
||||
type MonitorGroup struct {
|
||||
ID uuid.UUID
|
||||
OrgID uuid.UUID
|
||||
|
||||
Reference in new issue
Block a user