From 4b32b94ad35d3afc2fc4c6f3edc6be69fd288fae Mon Sep 17 00:00:00 2001 From: Trevor Wood Date: Sat, 14 Apr 2018 14:45:03 -0500 Subject: [PATCH] Add Slack field configuration documentation Signed-off-by: Trevor Wood --- content/docs/alerting/configuration.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/content/docs/alerting/configuration.md b/content/docs/alerting/configuration.md index b6d8da106..d1a6d940a 100755 --- a/content/docs/alerting/configuration.md +++ b/content/docs/alerting/configuration.md @@ -454,6 +454,23 @@ channel: [ text: | default = '{{ template "slack.default.text" . }}' ] [ fallback: | default = '{{ template "slack.default.fallback" . }}' ] +# An optional flag indicating whether the value(s) of all fields defined +# are short enough to be displayed side-by-side with any other value(s). +[ short_fields: ] + +# An optional list of key/value pairs to provide further details about the incident. +# The key/value pairs contained within it will be displayed in a table inside the +# message attachment. +[ fields: + - # Title is shown as a bold heading above the value text. + # It cannot contain markup and will be escaped for you. + title: + # The text value of the field. It may contain standard message + # markup and must be escaped as normal. May be multi-line. + value: +] + + # The HTTP client's configuration. [ http_config: | default = global.http_config ] ```