{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/alertmanager/issues/560","repository_url":"https://api.github.com/repos/prometheus/alertmanager","labels_url":"https://api.github.com/repos/prometheus/alertmanager/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/alertmanager/issues/560/comments","events_url":"https://api.github.com/repos/prometheus/alertmanager/issues/560/events","html_url":"https://github.com/prometheus/alertmanager/issues/560","id":190663788,"number":560,"title":"have alertmanager provide log with sended alert ?","user":{"login":"jinhang","id":4497831,"avatar_url":"https://avatars.githubusercontent.com/u/4497831?v=3","gravatar_id":"","url":"https://api.github.com/users/jinhang","html_url":"https://github.com/jinhang","followers_url":"https://api.github.com/users/jinhang/followers","following_url":"https://api.github.com/users/jinhang/following{/other_user}","gists_url":"https://api.github.com/users/jinhang/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhang/subscriptions","organizations_url":"https://api.github.com/users/jinhang/orgs","repos_url":"https://api.github.com/users/jinhang/repos","events_url":"https://api.github.com/users/jinhang/events{/privacy}","received_events_url":"https://api.github.com/users/jinhang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-21T09:40:38Z","updated_at":"2016-11-21T10:34:27Z","closed_at":null,"body":"I want to have alert history log when some alerts send successful. could you give me some advice? "},"comment":{"url":"https://api.github.com/repos/prometheus/alertmanager/issues/comments/261901246","html_url":"https://github.com/prometheus/alertmanager/issues/560#issuecomment-261901246","issue_url":"https://api.github.com/repos/prometheus/alertmanager/issues/560","id":261901246,"user":{"login":"jinhang","id":4497831,"avatar_url":"https://avatars.githubusercontent.com/u/4497831?v=3","gravatar_id":"","url":"https://api.github.com/users/jinhang","html_url":"https://github.com/jinhang","followers_url":"https://api.github.com/users/jinhang/followers","following_url":"https://api.github.com/users/jinhang/following{/other_user}","gists_url":"https://api.github.com/users/jinhang/gists{/gist_id}","starred_url":"https://api.github.com/users/jinhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinhang/subscriptions","organizations_url":"https://api.github.com/users/jinhang/orgs","repos_url":"https://api.github.com/users/jinhang/repos","events_url":"https://api.github.com/users/jinhang/events{/privacy}","received_events_url":"https://api.github.com/users/jinhang/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T10:34:27Z","updated_at":"2016-11-21T10:34:27Z","body":"like use  alertmanager API `api/v1/alerts/groups` have like this:\r\n```\r\n{\r\n    \"status\":\"success\",\r\n    \"data\":[\r\n        {\r\n            \"labels\":{\r\n                \"alertname\":\"\"\r\n            },\r\n            \"blocks\":[\r\n                {\r\n                    \"routeOpts\":{\r\n                        \"receiver\":\"team-X-mails\",\r\n                        \"groupBy\":[\r\n                            \"alertname\"\r\n                        ],\r\n                        \"groupWait\":3000000000,\r\n                        \"groupInterval\":5000000000,\r\n                        \"repeatInterval\":3000000000\r\n                    },\r\n                    \"alerts\":[\r\n                        {\r\n                            \"labels\":{\r\n                                \"alertname\":\"\",\r\n                                \"instance\":\"\",\r\n                                \"job\":\"\",\r\n                                \"monitor\":\"codelab-monitor\",\r\n                                \"severity\":\"fatal\"\r\n                            },\r\n                            \"annotations\":{\r\n                                \"description\":\"\",\r\n                                \"summary\":\"\"\r\n                            },\r\n                            \"startsAt\":\"2016-11-18T15:48:09.803+08:00\",\r\n                            \"endsAt\":\"0001-01-01T00:00:00Z\",\r\n                            \"generatorURL\":\"\",\r\n                            \"inhibited\":false,\r\n                            \"silenced\":18\r\n                        }\r\n                    ]\r\n                }\r\n            ]\r\n        }\r\n   }\r\n}\r\n```\r\n\r\nBut It is current alerts."}}
{"actor":{"display_login":"jinhang"}}