{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments/156976214","pull_request_review_id":83542019,"id":156976214,"diff_hunk":"@@ -669,8 +669,8 @@ func (n *Slack) Notify(ctx context.Context, as ...*types.Alert) (bool, error) {\n \t\tvar fields = make([]slackAttachmentField, numFields)\n \t\tfor k, v := range n.conf.Fields {\n \t\t\tfields[k] = slackAttachmentField{\n-\t\t\t\tv[\"title\"],\n-\t\t\t\tv[\"value\"],\n+\t\t\t\ttmplText(v[\"title\"]),","path":"notify/impl.go","position":null,"original_position":6,"commit_id":"a16aacde540d08be806f340faf3e60684bdc09e0","original_commit_id":"a16aacde540d08be806f340faf3e60684bdc09e0","user":{"login":"rbtr","id":2940321,"avatar_url":"https://avatars2.githubusercontent.com/u/2940321?v=4","gravatar_id":"","url":"https://api.github.com/users/rbtr","html_url":"https://github.com/rbtr","followers_url":"https://api.github.com/users/rbtr/followers","following_url":"https://api.github.com/users/rbtr/following{/other_user}","gists_url":"https://api.github.com/users/rbtr/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtr/subscriptions","organizations_url":"https://api.github.com/users/rbtr/orgs","repos_url":"https://api.github.com/users/rbtr/repos","events_url":"https://api.github.com/users/rbtr/events{/privacy}","received_events_url":"https://api.github.com/users/rbtr/received_events","type":"User","site_admin":false},"body":"@stuartnelson3 is this what you meant?","created_at":"2017-12-14T15:35:05Z","updated_at":"2017-12-14T15:35:05Z","html_url":"https://github.com/prometheus/alertmanager/pull/1135#discussion_r156976214","pull_request_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments/156976214"},"html":{"href":"https://github.com/prometheus/alertmanager/pull/1135#discussion_r156976214"},"pull_request":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135","id":157420282,"html_url":"https://github.com/prometheus/alertmanager/pull/1135","diff_url":"https://github.com/prometheus/alertmanager/pull/1135.diff","patch_url":"https://github.com/prometheus/alertmanager/pull/1135.patch","issue_url":"https://api.github.com/repos/prometheus/alertmanager/issues/1135","number":1135,"state":"open","locked":false,"title":"Add Slack additional \"fields\" to notifications ","user":{"login":"rbtr","id":2940321,"avatar_url":"https://avatars2.githubusercontent.com/u/2940321?v=4","gravatar_id":"","url":"https://api.github.com/users/rbtr","html_url":"https://github.com/rbtr","followers_url":"https://api.github.com/users/rbtr/followers","following_url":"https://api.github.com/users/rbtr/following{/other_user}","gists_url":"https://api.github.com/users/rbtr/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtr/subscriptions","organizations_url":"https://api.github.com/users/rbtr/orgs","repos_url":"https://api.github.com/users/rbtr/repos","events_url":"https://api.github.com/users/rbtr/events{/privacy}","received_events_url":"https://api.github.com/users/rbtr/received_events","type":"User","site_admin":false},"body":"Had a go at implementing https://github.com/prometheus/alertmanager/issues/731\r\n\r\n> The Slack notification API has added a fields parameter that allows for some additional formatting [1]. It looks like the work was started to add this additional parameter [2], but the feature was never finished so that it was available.\r\n>[1] https://api.slack.com/docs/message-attachments#fields\r\n>[2] https://github.com/prometheus/alertmanager/blob/v0.5.1/notify/impl.go#L485-L490","created_at":"2017-12-10T07:20:23Z","updated_at":"2017-12-14T15:35:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e2ec8b7297fee2b938cc95b9c86399b914597ba","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135/commits","review_comments_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135/comments","review_comment_url":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/alertmanager/issues/1135/comments","statuses_url":"https://api.github.com/repos/prometheus/alertmanager/statuses/a16aacde540d08be806f340faf3e60684bdc09e0","head":{"label":"rbtr:slack-fields","ref":"slack-fields","sha":"a16aacde540d08be806f340faf3e60684bdc09e0","user":{"login":"rbtr","id":2940321,"avatar_url":"https://avatars2.githubusercontent.com/u/2940321?v=4","gravatar_id":"","url":"https://api.github.com/users/rbtr","html_url":"https://github.com/rbtr","followers_url":"https://api.github.com/users/rbtr/followers","following_url":"https://api.github.com/users/rbtr/following{/other_user}","gists_url":"https://api.github.com/users/rbtr/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtr/subscriptions","organizations_url":"https://api.github.com/users/rbtr/orgs","repos_url":"https://api.github.com/users/rbtr/repos","events_url":"https://api.github.com/users/rbtr/events{/privacy}","received_events_url":"https://api.github.com/users/rbtr/received_events","type":"User","site_admin":false},"repo":{"id":113700129,"name":"alertmanager","full_name":"rbtr/alertmanager","owner":{"login":"rbtr","id":2940321,"avatar_url":"https://avatars2.githubusercontent.com/u/2940321?v=4","gravatar_id":"","url":"https://api.github.com/users/rbtr","html_url":"https://github.com/rbtr","followers_url":"https://api.github.com/users/rbtr/followers","following_url":"https://api.github.com/users/rbtr/following{/other_user}","gists_url":"https://api.github.com/users/rbtr/gists{/gist_id}","starred_url":"https://api.github.com/users/rbtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbtr/subscriptions","organizations_url":"https://api.github.com/users/rbtr/orgs","repos_url":"https://api.github.com/users/rbtr/repos","events_url":"https://api.github.com/users/rbtr/events{/privacy}","received_events_url":"https://api.github.com/users/rbtr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rbtr/alertmanager","description":"Prometheus Alertmanager","fork":true,"url":"https://api.github.com/repos/rbtr/alertmanager","forks_url":"https://api.github.com/repos/rbtr/alertmanager/forks","keys_url":"https://api.github.com/repos/rbtr/alertmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rbtr/alertmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rbtr/alertmanager/teams","hooks_url":"https://api.github.com/repos/rbtr/alertmanager/hooks","issue_events_url":"https://api.github.com/repos/rbtr/alertmanager/issues/events{/number}","events_url":"https://api.github.com/repos/rbtr/alertmanager/events","assignees_url":"https://api.github.com/repos/rbtr/alertmanager/assignees{/user}","branches_url":"https://api.github.com/repos/rbtr/alertmanager/branches{/branch}","tags_url":"https://api.github.com/repos/rbtr/alertmanager/tags","blobs_url":"https://api.github.com/repos/rbtr/alertmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rbtr/alertmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rbtr/alertmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/rbtr/alertmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rbtr/alertmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/rbtr/alertmanager/languages","stargazers_url":"https://api.github.com/repos/rbtr/alertmanager/stargazers","contributors_url":"https://api.github.com/repos/rbtr/alertmanager/contributors","subscribers_url":"https://api.github.com/repos/rbtr/alertmanager/subscribers","subscription_url":"https://api.github.com/repos/rbtr/alertmanager/subscription","commits_url":"https://api.github.com/repos/rbtr/alertmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/rbtr/alertmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/rbtr/alertmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/rbtr/alertmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/rbtr/alertmanager/contents/{+path}","compare_url":"https://api.github.com/repos/rbtr/alertmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rbtr/alertmanager/merges","archive_url":"https://api.github.com/repos/rbtr/alertmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rbtr/alertmanager/downloads","issues_url":"https://api.github.com/repos/rbtr/alertmanager/issues{/number}","pulls_url":"https://api.github.com/repos/rbtr/alertmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/rbtr/alertmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/rbtr/alertmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rbtr/alertmanager/labels{/name}","releases_url":"https://api.github.com/repos/rbtr/alertmanager/releases{/id}","deployments_url":"https://api.github.com/repos/rbtr/alertmanager/deployments","created_at":"2017-12-09T20:46:35Z","updated_at":"2017-12-09T20:46:37Z","pushed_at":"2017-12-14T15:34:25Z","git_url":"git://github.com/rbtr/alertmanager.git","ssh_url":"git@github.com:rbtr/alertmanager.git","clone_url":"https://github.com/rbtr/alertmanager.git","svn_url":"https://github.com/rbtr/alertmanager","homepage":"","size":21313,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"prometheus:master","ref":"master","sha":"d75ff37a387672560e9445cd456ff5325dc6da58","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars3.githubusercontent.com/u/3380462?v=4","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":11452538,"name":"alertmanager","full_name":"prometheus/alertmanager","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars3.githubusercontent.com/u/3380462?v=4","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/alertmanager","description":"Prometheus Alertmanager","fork":false,"url":"https://api.github.com/repos/prometheus/alertmanager","forks_url":"https://api.github.com/repos/prometheus/alertmanager/forks","keys_url":"https://api.github.com/repos/prometheus/alertmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/alertmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/alertmanager/teams","hooks_url":"https://api.github.com/repos/prometheus/alertmanager/hooks","issue_events_url":"https://api.github.com/repos/prometheus/alertmanager/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/alertmanager/events","assignees_url":"https://api.github.com/repos/prometheus/alertmanager/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/alertmanager/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/alertmanager/tags","blobs_url":"https://api.github.com/repos/prometheus/alertmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/alertmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/alertmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/alertmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/alertmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/alertmanager/languages","stargazers_url":"https://api.github.com/repos/prometheus/alertmanager/stargazers","contributors_url":"https://api.github.com/repos/prometheus/alertmanager/contributors","subscribers_url":"https://api.github.com/repos/prometheus/alertmanager/subscribers","subscription_url":"https://api.github.com/repos/prometheus/alertmanager/subscription","commits_url":"https://api.github.com/repos/prometheus/alertmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/alertmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/alertmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/alertmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/alertmanager/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/alertmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/alertmanager/merges","archive_url":"https://api.github.com/repos/prometheus/alertmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/alertmanager/downloads","issues_url":"https://api.github.com/repos/prometheus/alertmanager/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/alertmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/alertmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/alertmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/alertmanager/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/alertmanager/releases{/id}","deployments_url":"https://api.github.com/repos/prometheus/alertmanager/deployments","created_at":"2013-07-16T15:06:31Z","updated_at":"2017-12-14T05:23:36Z","pushed_at":"2017-12-14T15:34:27Z","git_url":"git://github.com/prometheus/alertmanager.git","ssh_url":"git@github.com:prometheus/alertmanager.git","clone_url":"https://github.com/prometheus/alertmanager.git","svn_url":"https://github.com/prometheus/alertmanager","homepage":"","size":19665,"stargazers_count":858,"watchers_count":858,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":374,"mirror_url":null,"archived":false,"open_issues_count":125,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":374,"open_issues":125,"watchers":858,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135"},"html":{"href":"https://github.com/prometheus/alertmanager/pull/1135"},"issue":{"href":"https://api.github.com/repos/prometheus/alertmanager/issues/1135"},"comments":{"href":"https://api.github.com/repos/prometheus/alertmanager/issues/1135/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/alertmanager/pulls/1135/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/alertmanager/statuses/a16aacde540d08be806f340faf3e60684bdc09e0"}},"author_association":"NONE"}}
{"actor":{"display_login":"rbtr"}}