Skip to content

Instantly share code, notes, and snippets.

@max
Created April 25, 2012 16:44
Show Gist options
  • Save max/2491213 to your computer and use it in GitHub Desktop.
Save max/2491213 to your computer and use it in GitHub Desktop.
Heroku Status API v3

Heroku Status API v3 (first draft)

Get current status

$ curl "https://status-beta.heroku.com/api/v3/current-status"
{"App Operations":"green","Tools":"green","Production":"green","Development":"green"}

Get list of issues (optionally limited by date or count)

$ curl "https://status-beta.heroku.com/api/v3/issues?since=2012-04-24&limit=1"
[{"created_at":"2012-04-24T14:02:39Z","id":336,"resolved":true,"title":"Custom Domains: Errors Adding / Updating","updated_at":"2012-04-24T15:24:58Z","updates":[{"contents":"The fix has been applied, and custom domains are functioning as expected.\r\n\r\nFurther investigation shows that custom domains created or updated after 4/23/2012 19:50 UTC were affected.","created_at":"2012-04-24T15:24:58Z","id":980,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"green","update_type":"resolved","updated_at":"2012-04-24T15:24:58Z"},{"contents":"All previously malfunctioning custom domains are now online.  Engineers are continuing to roll out the fix.","created_at":"2012-04-24T15:06:53Z","id":979,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"yellow","update_type":"update","updated_at":"2012-04-24T15:06:53Z"},{"contents":"The issue has been identified and engineers are working to fix.","created_at":"2012-04-24T14:45:49Z","id":978,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"yellow","update_type":"update","updated_at":"2012-04-24T14:45:49Z"},{"contents":"Engineers are still investigating the source of issues regarding custom domains. We have determined that only domains added or updated in the past 24 hours should be affected.\r\n\r\nWe'll continue to provide more information as it becomes available.","created_at":"2012-04-24T14:23:58Z","id":977,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"yellow","update_type":"update","updated_at":"2012-04-24T15:08:53Z"},{"contents":"Engineers are investigating issues with custom domains around applications. We will provide more information as it becomes available.","created_at":"2012-04-24T14:02:39Z","id":976,"incident_id":336,"status_app":"yellow","status_dev":null,"status_prod":null,"status_tools":"yellow","update_type":"issue","updated_at":"2012-04-24T14:02:50Z"}]}]

Get a single issue by ID number

$ curl "https://status-beta.heroku.com/api/v3/issues/336"
{"created_at":"2012-04-24T14:02:39Z","id":336,"resolved":true,"title":"Custom Domains: Errors Adding / Updating","updated_at":"2012-04-24T15:24:58Z","updates":[{"contents":"The fix has been applied, and custom domains are functioning as expected.\r\n\r\nFurther investigation shows that custom domains created or updated after 4/23/2012 19:50 UTC were affected.","created_at":"2012-04-24T15:24:58Z","id":980,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"green","update_type":"resolved","updated_at":"2012-04-24T15:24:58Z"},{"contents":"All previously malfunctioning custom domains are now online.  Engineers are continuing to roll out the fix.","created_at":"2012-04-24T15:06:53Z","id":979,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"yellow","update_type":"update","updated_at":"2012-04-24T15:06:53Z"},{"contents":"The issue has been identified and engineers are working to fix.","created_at":"2012-04-24T14:45:49Z","id":978,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"yellow","update_type":"update","updated_at":"2012-04-24T14:45:49Z"},{"contents":"Engineers are still investigating the source of issues regarding custom domains. We have determined that only domains added or updated in the past 24 hours should be affected.\r\n\r\nWe'll continue to provide more information as it becomes available.","created_at":"2012-04-24T14:23:58Z","id":977,"incident_id":336,"status_app":"green","status_dev":"green","status_prod":"green","status_tools":"yellow","update_type":"update","updated_at":"2012-04-24T15:08:53Z"},{"contents":"Engineers are investigating issues with custom domains around applications. We will provide more information as it becomes available.","created_at":"2012-04-24T14:02:39Z","id":976,"incident_id":336,"status_app":"yellow","status_dev":null,"status_prod":null,"status_tools":"yellow","update_type":"issue","updated_at":"2012-04-24T14:02:50Z"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment