feat(observability): add google chat to webhooks (#961)
This commit is contained in:
parent
971cd27e4b
commit
0f8362ca74
9 changed files with 112 additions and 23 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue