{"action":"created","issue":{"url":"https://api.github.com/repos/arachnys/cabot/issues/189","labels_url":"https://api.github.com/repos/arachnys/cabot/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/arachnys/cabot/issues/189/comments","events_url":"https://api.github.com/repos/arachnys/cabot/issues/189/events","html_url":"https://github.com/arachnys/cabot/issues/189","id":58612492,"number":189,"title":"Automatically issuing predefined answer to an alert","user":{"login":"JeanFred","id":364381,"avatar_url":"https://avatars.githubusercontent.com/u/364381?v=3","gravatar_id":"","url":"https://api.github.com/users/JeanFred","html_url":"https://github.com/JeanFred","followers_url":"https://api.github.com/users/JeanFred/followers","following_url":"https://api.github.com/users/JeanFred/following{/other_user}","gists_url":"https://api.github.com/users/JeanFred/gists{/gist_id}","starred_url":"https://api.github.com/users/JeanFred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeanFred/subscriptions","organizations_url":"https://api.github.com/users/JeanFred/orgs","repos_url":"https://api.github.com/users/JeanFred/repos","events_url":"https://api.github.com/users/JeanFred/events{/privacy}","received_events_url":"https://api.github.com/users/JeanFred/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-23T16:43:58Z","updated_at":"2015-02-24T08:45:13Z","closed_at":null,"body":"As a user, I want to Cabot to be able to automatically issue some predefined answer to a given alert, so I have to intervene only if I really need to be.\r\n\r\nFor example:\r\nIf graphite does not answer\r\nThen restart graphite and wait 1 minut\r\nIf the problem persists, then alert me.\r\n\r\n(Following a discussion with @m-brown)"},"comment":{"url":"https://api.github.com/repos/arachnys/cabot/issues/comments/75718705","html_url":"https://github.com/arachnys/cabot/issues/189#issuecomment-75718705","issue_url":"https://api.github.com/repos/arachnys/cabot/issues/189","id":75718705,"user":{"login":"dbuxton","id":314113,"avatar_url":"https://avatars.githubusercontent.com/u/314113?v=3","gravatar_id":"","url":"https://api.github.com/users/dbuxton","html_url":"https://github.com/dbuxton","followers_url":"https://api.github.com/users/dbuxton/followers","following_url":"https://api.github.com/users/dbuxton/following{/other_user}","gists_url":"https://api.github.com/users/dbuxton/gists{/gist_id}","starred_url":"https://api.github.com/users/dbuxton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbuxton/subscriptions","organizations_url":"https://api.github.com/users/dbuxton/orgs","repos_url":"https://api.github.com/users/dbuxton/repos","events_url":"https://api.github.com/users/dbuxton/events{/privacy}","received_events_url":"https://api.github.com/users/dbuxton/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T08:45:13Z","updated_at":"2015-02-24T08:45:13Z","body":"A script could work but typically it will involve doing something on another machine, which then involves making curl calls programmatically or making sure the script is on the remote machine.\r\n\r\nMy preferred solution would be an alert plugin that triggers a Jenkins job (easy enough to do via the API). I don't know if each job would require a unique token - if so that could be a problem as we can't currently configure individual checks or services with relation to alerts.\r\n\r\nThe only other thing we can't currently do with our plugin system is let plugins modify the control flow of alerts - so we would have no way of letting the automated task plugin try once and muffle the alert, then allow the alerts to go as usual.\r\n\r\nWe could address that by having a special type of exception raised by the plugin in question (`BlockOtherAlertsException`) I guess - can you think of a better way?"}}