Interaction with Qubole Data Services APIs via Hubot framework
-
Register the auth token value as an environment variables when starting your bot (as usual with Hubot scripts).
-
export HUBOT_QUBOLE_AUTH_TOKEN=your_auth_token
-
If you are not working on api.qubole.com, then you can override the api endpoint as well (optional)
-
export HUBOT_QUBOLE_BASE_URL=https://<env>.qubole.com/api/latest
If you are using Heroku to host your bot, replace export ...
with heroku set:config ...
.
See full instructions here.
npm install hubot-qubole --save
(updates yourpackage.json
file)- Open the
external-scripts.json
file in the root directory (you may need to create this file) and add an entry to the array (e.g.[ 'hubot-qubole' ]
).
hubot command <id> status
- Display an overall status of a commandhubot cluster <id> status
- Display the status of given cluster idhubot cluster <id> nodes
- Display the nodes information of given cluster idhubot cluster <id> usage
- Show the usage statistics for the given cluster idhubot schedule <id> status
- Display the status of given schedule idhubot schedule <id> runs
- Shows the last 10 run of a given schedulehubot template <id> status
- Display the status of given template idhubot template <id> runs
- Shows the last 10 run of a given templatehubot note <id> status
- Display the status of a given notebook idhubot qcuh
- Shows the QCUH consumed in ongoing month