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
Alerting: Update webhook receiver with http_config, headers, and payload (#2331)
* Add support for nested schema packing/unpacking
* Support http_config for webhooks
Adds support for http_config in a way that is easily extendable to other notifiers when they gain support as well.
* Support custom headers and payload for webhooks
* Generate docs
* Linting
Copy file name to clipboardExpand all lines: docs/resources/contact_point.md
+62Lines changed: 62 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -523,9 +523,12 @@ Optional:
523
523
-`basic_auth_password` (String, Sensitive) The username to use in basic auth headers attached to the request. If omitted, basic auth will not be used.
524
524
-`basic_auth_user` (String) The username to use in basic auth headers attached to the request. If omitted, basic auth will not be used.
525
525
-`disable_resolve_message` (Boolean) Whether to disable sending resolve messages. Defaults to `false`.
526
+
-`headers` (Map of String) Custom headers to attach to the request.
527
+
-`http_config` (Block Set, Max: 1) Common HTTP client options. (see [below for nested schema](#nestedblock--webhook--http_config))
526
528
-`http_method` (String) The HTTP method to use in the request. Defaults to `POST`.
527
529
-`max_alerts` (Number) The maximum number of alerts to send in a single request. This can be helpful in limiting the size of the request body. The default is 0, which indicates no limit.
528
530
-`message` (String) Custom message. You can use template variables.
531
+
-`payload` (Block Set, Max: 1) Optionally provide a templated payload. Overrides 'Message' and 'Title' field. (see [below for nested schema](#nestedblock--webhook--payload))
529
532
-`settings` (Map of String, Sensitive) Additional custom properties to attach to the notifier. Defaults to `map[]`.
530
533
-`title` (String) Templated title of the message.
531
534
-`tls_config` (Map of String, Sensitive) Allows configuring TLS for the webhook notifier.
@@ -534,6 +537,65 @@ Read-Only:
534
537
535
538
-`uid` (String) The UID of the contact point.
536
539
540
+
<aid="nestedblock--webhook--http_config"></a>
541
+
### Nested Schema for `webhook.http_config`
542
+
543
+
Optional:
544
+
545
+
-`oauth2` (Block Set, Max: 1) OAuth2 configuration options. (see [below for nested schema](#nestedblock--webhook--http_config--oauth2))
### Nested Schema for `webhook.http_config.oauth2.tls_config`
576
+
577
+
Optional:
578
+
579
+
-`ca_certificate` (String, Sensitive) Certificate in PEM format to use when verifying the server's certificate chain.
580
+
-`client_certificate` (String, Sensitive) Client certificate in PEM format to use when connecting to the server.
581
+
-`client_key` (String, Sensitive) Client key in PEM format to use when connecting to the server.
582
+
-`insecure_skip_verify` (Boolean) Do not verify the server's certificate chain and host name. Defaults to `false`.
583
+
584
+
585
+
586
+
587
+
<aid="nestedblock--webhook--payload"></a>
588
+
### Nested Schema for `webhook.payload`
589
+
590
+
Required:
591
+
592
+
-`template` (String) Custom payload template.
593
+
594
+
Optional:
595
+
596
+
-`vars` (Map of String) Optionally provide a variables to be used in the payload template. They will be available in the template as `.Vars.<variable_name>`.
0 commit comments