Interaction with the StatusPage.io API to open and update incidents, change component status.
- Register the two values as environment variables when starting your bot (as usual with Hubot scripts).
export HUBOT_STATUS_PAGE_ID=page_id_for_accountexport HUBOT_STATUS_PAGE_TOKEN=token_for_status_pageexport HUBOT_STATUS_PAGE_TWITTER_ENABLED=t_or_f
If you are using Heroku to host your bot, replace export ... with heroku set:config ....
See full instructions here.
npm install hubot-statuspage --save(updates yourpackage.jsonfile)- Open the
external-scripts.jsonfile in the root directory (you may need to create this file) and add an entry to the array (e.g.[ 'hubot-statuspage' ]).
hubot status?- Display an overall status of all componentshubot status <component>?- Display the status of a single componenthubot status <component>(degraded performance|partial outage|major outage|operational) - Set the status for a component. You can also use degraded, partial or major as shortcuts.hubot status incidents- Show all unresolved incidentshubot status open (investigating|identified|monitoring|resolved) <name>: <message>- Create a new incident using the specified name and message, setting it to the desired status (investigating, etc.). The message can be omittedhubot status update <status> <message>- Update the latest open incident with the specified status and message.
