feat(observability): add google chat to webhooks (#961)

This commit is contained in:
Timo Bergen 2025-08-25 17:30:06 +02:00 committed by GitHub
parent 971cd27e4b
commit 0f8362ca74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 112 additions and 23 deletions

View file

@ -44,8 +44,9 @@ func fixtureOpsGenieConfigsModel() basetypes.ListValue {
func fixtureWebHooksConfigsModel() basetypes.ListValue {
return types.ListValueMust(types.ObjectType{AttrTypes: webHooksConfigsTypes}, []attr.Value{
types.ObjectValueMust(webHooksConfigsTypes, map[string]attr.Value{
"url": types.StringValue("http://example.com"),
"ms_teams": types.BoolValue(true),
"url": types.StringValue("http://example.com"),
"ms_teams": types.BoolValue(true),
"google_chat": types.BoolValue(true),
}),
})
}
@ -150,8 +151,9 @@ func fixtureOpsGenieConfigsPayload() observability.CreateAlertConfigReceiverPayl
func fixtureWebHooksConfigsPayload() observability.CreateAlertConfigReceiverPayloadWebHookConfigsInner {
return observability.CreateAlertConfigReceiverPayloadWebHookConfigsInner{
Url: utils.Ptr("http://example.com"),
MsTeams: utils.Ptr(true),
Url: utils.Ptr("http://example.com"),
MsTeams: utils.Ptr(true),
GoogleChat: utils.Ptr(true),
}
}
@ -231,8 +233,9 @@ func fixtureOpsGenieConfigsResponse() observability.OpsgenieConfig {
func fixtureWebHooksConfigsResponse() observability.WebHook {
return observability.WebHook{
Url: utils.Ptr("http://example.com"),
MsTeams: utils.Ptr(true),
Url: utils.Ptr("http://example.com"),
MsTeams: utils.Ptr(true),
GoogleChat: utils.Ptr(true),
}
}