Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions monitor_alert_channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const (
type AlertChannel struct {
Alerts AlertsInfo `json:"alerts"`
ChannelType AlertNotificationType `json:"channel_type"`
Content ChannelContent `json:"content"`
Details ChannelDetails `json:"details"`
Created *time.Time `json:"-"`
CreatedBy string `json:"created_by"`
Expand All @@ -43,16 +42,6 @@ type AlertsInfo struct {
AlertCount int `json:"alert_count"`
}

type EmailChannelContent struct {
EmailAddresses []string `json:"email_addresses,omitempty"`
}

// ChannelContent represents the content block for an AlertChannel, which varies by channel type.
type ChannelContent struct {
Email *EmailChannelContent `json:"email"`
// Other channel types like 'webhook', 'slack' could be added her
}

// ChannelDetails represents the details block for an AlertChannel
type ChannelDetails struct {
Email *EmailChannelDetails `json:"email"`
Expand Down

This file was deleted.

Loading
Loading