{"action":"created","issue":{"url":"https://api.github.com/repos/CachetHQ/Cachet/issues/1607","repository_url":"https://api.github.com/repos/CachetHQ/Cachet","labels_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/1607/labels{/name}","comments_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/1607/comments","events_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/1607/events","html_url":"https://github.com/CachetHQ/Cachet/issues/1607","id":140240098,"number":1607,"title":"Treat Maintenance and Issues as different event types","user":{"login":"bjshively","id":2646312,"avatar_url":"https://avatars.githubusercontent.com/u/2646312?v=3","gravatar_id":"","url":"https://api.github.com/users/bjshively","html_url":"https://github.com/bjshively","followers_url":"https://api.github.com/users/bjshively/followers","following_url":"https://api.github.com/users/bjshively/following{/other_user}","gists_url":"https://api.github.com/users/bjshively/gists{/gist_id}","starred_url":"https://api.github.com/users/bjshively/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjshively/subscriptions","organizations_url":"https://api.github.com/users/bjshively/orgs","repos_url":"https://api.github.com/users/bjshively/repos","events_url":"https://api.github.com/users/bjshively/events{/privacy}","received_events_url":"https://api.github.com/users/bjshively/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CachetHQ/Cachet/labels/up-for-grabs","name":"up-for-grabs","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/CachetHQ/Cachet/milestones/15","html_url":"https://github.com/CachetHQ/Cachet/milestones/V2.3.0","labels_url":"https://api.github.com/repos/CachetHQ/Cachet/milestones/15/labels","id":1472695,"number":15,"title":"V2.3.0","description":"","creator":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":0,"state":"open","created_at":"2015-12-23T15:13:54Z","updated_at":"2016-03-13T10:50:09Z","due_on":"2016-04-22T23:00:00Z","closed_at":null},"comments":6,"created_at":"2016-03-11T17:13:09Z","updated_at":"2016-03-15T17:30:07Z","closed_at":null,"body":"### Feature Request/Description\r\n\r\n**TLDR: Separate API requests for maintenance and incident events. Treat them as two separate event classes.**\r\n\r\nThis is perhaps a bit general and might be something there are differing opinions on, but to me it is unintuitive that maintenance would be considered a type of incident. I think there should be two distinct URLs that return incidents and maintenance events separately (and perhaps if necessary or for backwards compatibility, a 3rd URL that returns both event types as [site]/api/v1/incidents does currently.)\r\n\r\nMy reasoning is this.. Maintenance isn't necessarily a \"bad thing.\" There is a big difference between scheduled downtime and unexpected service interruption. If I told the leads in my org that there were 10 incidents this month, they might panic. However, if I told them that we had 9 scheduled maintenance activities and one brief outage incident, that sounds a lot less dire. From a reporting perspective, it makes sense to separate these two categories of data.\r\n\r\nI'd love to hear any thoughts (including/especially disagreement) on this. I combed through the issue backlog and I do see a lot of enhancements coming up for scheduled maintenance, etc. but I didn't see this particular issue addressed. Apologies if I just missed it!\r\n\r\n### Actual behaviour\r\n\r\nIncidents and maintenance are essentially treated as one object type.\r\n\r\n### Steps to reproduce\r\n\r\nAPI calls, etc.\r\n"},"comment":{"url":"https://api.github.com/repos/CachetHQ/Cachet/issues/comments/196937390","html_url":"https://github.com/CachetHQ/Cachet/issues/1607#issuecomment-196937390","issue_url":"https://api.github.com/repos/CachetHQ/Cachet/issues/1607","id":196937390,"user":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T17:30:06Z","updated_at":"2016-03-15T17:30:06Z","body":"Yeah, this would need:\r\n\r\n- [ ] Removing of maintenance code from the current dashboard incident controllers/commands\r\n- [ ] `Maintenance` model.\r\n- [ ] Relevant maintenance commands, handlers and events (see the `./app/Bus` directory)\r\n- [ ] A new presenter for the `Maintenance` model\r\n- [ ] Updating of the dashboard to handle maintenance"}}