You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`integration_filter` (List of String) Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.
50
49
-`is_webhook_enabled` (Boolean) Controls whether the outgoing webhook will trigger or is ignored. Defaults to `true`.
51
50
-`password` (String, Sensitive) The auth data of the webhook. Used for Basic authentication
51
+
-`preset` (String) The preset of the outgoing webhook. Possible values are: `simple_webhook`, `advanced_webhook`, `grafana_sift`, `incident_webhook`. If no preset is set, the default preset is `advanced_webhook`.
52
52
-`team_id` (String) The ID of the OnCall team (using the `grafana_oncall_team` datasource).
53
53
-`trigger_template` (String) A template used to dynamically determine whether the webhook should execute based on the content of the payload.
54
-
-`trigger_type` (String) The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`. Defaults to `escalation`.
54
+
-`trigger_type` (String) The type of event that will cause this outgoing webhook to execute. The events available will depend on the preset used. For alert group webhooks, the possible triggers are: `escalation`, `alert group created`, `status change`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`, `resolution note added`, `personal notification`; for incident webhooks: `incident declared`, `incident changed`, `incident resolved`. Defaults to `escalation`.
55
+
-`url` (String) The webhook URL. Required when not using a preset that controls this field.
55
56
-`user` (String) Username to use when making the outgoing webhook request.
Description: "The preset of the outgoing webhook. Possible values are: `simple_webhook`, `advanced_webhook`, `grafana_sift`, `incident_webhook`. If no preset is set, the default preset is `advanced_webhook`.",
72
+
},
32
73
"team_id": {
33
74
Type: schema.TypeString,
34
75
Optional: true,
35
76
Description: "The ID of the OnCall team (using the `grafana_oncall_team` datasource).",
36
77
},
37
78
"url": {
38
-
Type: schema.TypeString,
39
-
Required: true,
40
-
Description: "The webhook URL.",
79
+
Type: schema.TypeString,
80
+
Optional: true,
81
+
Description: "The webhook URL. Required when not using a preset that controls this field.",
Description: "The type of event that will cause this outgoing webhook to execute. The types of triggers are: `escalation`, `alert group created`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`.",
73
-
Default: "escalation",
117
+
Type: schema.TypeString,
118
+
Optional: true,
119
+
Description: "The type of event that will cause this outgoing webhook to execute. The events available will depend on the preset used. For alert group webhooks, the possible triggers are: `escalation`, `alert group created`, `status change`, `acknowledge`, `resolve`, `silence`, `unsilence`, `unresolve`, `unacknowledge`, `resolution note added`, `personal notification`; for incident webhooks: `incident declared`, `incident changed`, `incident resolved`.",
Description: "Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.",
143
+
Type: schema.TypeList,
144
+
Elem: &schema.Schema{Type: schema.TypeString},
145
+
Optional: true,
146
+
Description: "Restricts the outgoing webhook to only trigger if the event came from a selected integration. If no integrations are selected the outgoing webhook will trigger for any integration.",
0 commit comments