Alerting: Use expected field name for receiver in HCL export (#87065)
* Use expected field name for receiver in hcl Terraform provider expects `contact_point` instead of `receiver` in notification settings on a rule.
This commit is contained in:
@@ -292,7 +292,8 @@ type RelativeTimeRangeExport struct {
|
||||
|
||||
// AlertRuleNotificationSettingsExport is the provisioned export of models.NotificationSettings.
|
||||
type AlertRuleNotificationSettingsExport struct {
|
||||
Receiver string `yaml:"receiver,omitempty" json:"receiver,omitempty" hcl:"receiver"`
|
||||
// Terraform provider uses `contact_point`, so export the field with that name in HCL.
|
||||
Receiver string `yaml:"receiver,omitempty" json:"receiver,omitempty" hcl:"contact_point"`
|
||||
|
||||
GroupBy []string `yaml:"group_by,omitempty" json:"group_by,omitempty" hcl:"group_by"`
|
||||
GroupWait *string `yaml:"group_wait,omitempty" json:"group_wait,omitempty" hcl:"group_wait,optional"`
|
||||
|
||||
Reference in New Issue
Block a user