Skip to content

Commit 04c1c9e

Browse files
authored
Remove content field from list alert channels response (#925)
1 parent 09803f2 commit 04c1c9e

7 files changed

Lines changed: 119 additions & 462 deletions

monitor_alert_channels.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const (
2525
type AlertChannel struct {
2626
Alerts AlertsInfo `json:"alerts"`
2727
ChannelType AlertNotificationType `json:"channel_type"`
28-
Content ChannelContent `json:"content"`
2928
Details ChannelDetails `json:"details"`
3029
Created *time.Time `json:"-"`
3130
CreatedBy string `json:"created_by"`
@@ -43,16 +42,6 @@ type AlertsInfo struct {
4342
AlertCount int `json:"alert_count"`
4443
}
4544

46-
type EmailChannelContent struct {
47-
EmailAddresses []string `json:"email_addresses,omitempty"`
48-
}
49-
50-
// ChannelContent represents the content block for an AlertChannel, which varies by channel type.
51-
type ChannelContent struct {
52-
Email *EmailChannelContent `json:"email"`
53-
// Other channel types like 'webhook', 'slack' could be added her
54-
}
55-
5645
// ChannelDetails represents the details block for an AlertChannel
5746
type ChannelDetails struct {
5847
Email *EmailChannelDetails `json:"email"`

test/integration/fixtures/TestCreateMonitorAlertDefinitionWithIdempotency.yaml

Lines changed: 0 additions & 300 deletions
This file was deleted.

0 commit comments

Comments
 (0)