{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/1570","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570/events","html_url":"https://github.com/prometheus/prometheus/issues/1570","id":150145299,"number":1570,"title":"HTTP API for getting alerts","user":{"login":"hryamzik","id":1643962,"avatar_url":"https://avatars.githubusercontent.com/u/1643962?v=3","gravatar_id":"","url":"https://api.github.com/users/hryamzik","html_url":"https://github.com/hryamzik","followers_url":"https://api.github.com/users/hryamzik/followers","following_url":"https://api.github.com/users/hryamzik/following{/other_user}","gists_url":"https://api.github.com/users/hryamzik/gists{/gist_id}","starred_url":"https://api.github.com/users/hryamzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hryamzik/subscriptions","organizations_url":"https://api.github.com/users/hryamzik/orgs","repos_url":"https://api.github.com/users/hryamzik/repos","events_url":"https://api.github.com/users/hryamzik/events{/privacy}","received_events_url":"https://api.github.com/users/hryamzik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prometheus/prometheus/labels/feature-request","name":"feature-request","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-21T17:51:14Z","updated_at":"2016-04-21T19:39:28Z","closed_at":null,"body":"I didn't find anything about API for the /alerts in [docs](https://prometheus.io/docs/). I can see that /alerts returns html:\r\n\r\n```go\r\nrouter.Get(\"/alerts\", instrf(\"alerts\", h.alerts))\r\n```\r\n\r\nBut is it possible to get them with json?"},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/213083699","html_url":"https://github.com/prometheus/prometheus/issues/1570#issuecomment-213083699","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/1570","id":213083699,"user":{"login":"hryamzik","id":1643962,"avatar_url":"https://avatars.githubusercontent.com/u/1643962?v=3","gravatar_id":"","url":"https://api.github.com/users/hryamzik","html_url":"https://github.com/hryamzik","followers_url":"https://api.github.com/users/hryamzik/followers","following_url":"https://api.github.com/users/hryamzik/following{/other_user}","gists_url":"https://api.github.com/users/hryamzik/gists{/gist_id}","starred_url":"https://api.github.com/users/hryamzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hryamzik/subscriptions","organizations_url":"https://api.github.com/users/hryamzik/orgs","repos_url":"https://api.github.com/users/hryamzik/repos","events_url":"https://api.github.com/users/hryamzik/events{/privacy}","received_events_url":"https://api.github.com/users/hryamzik/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T19:39:28Z","updated_at":"2016-04-21T19:39:28Z","body":"I'm thinking of a telegram bot to get more details on alerts when internet connection is limited and web UI is difficult to access. By the way it's not mobile friendly for some reason, pretty unusual for a bootstrap based one."}}