Skip to content

Commit f97b2e4

Browse files
add support for webhook secret and fix wrong definition
1 parent 4385247 commit f97b2e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client_alert_resource.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const (
99
ResourceNameUserGroup = "sls.common.user_group"
1010
ResourceNameContentTemplate = "sls.alert.content_template"
1111
ResourceNameGlobalConfig = "sls.alert.global_config"
12-
ResourceNameWebhookIntegration = "sls.alert.webhook_application"
12+
ResourceNameWebhookIntegration = "sls.alert.action_webhook"
1313
)
1414

1515
type (
@@ -100,6 +100,7 @@ type (
100100
Url string `json:"url"`
101101
Type string `json:"type"`
102102
Headers []*ResourceWebhookHeader `json:"headers"`
103+
Secret string `json:"secret"`
103104
}
104105

105106
// GlobalConfig is the global configuration for alerts.

0 commit comments

Comments
 (0)