updown.io integration for Rocket.Chat
Download source from here.
Unzip Sources.
This step is optional if you've already got a user which you want to use as post author you can skip this step.
Otherwise add a new user who is posting the updates to your channel or who ist texting the user which is supposed to be informed.
In your Rocket.Chat instance go to administration panel an click on "Integrations". To add an integration with BitRocket click on "NEW INTEGRATION".
Next, choose "Incoming WebHook".
Now, on the webhook config screen, set the following values:
Set this value to true
Enter the desired name for the integration (e.g. "UpDownRocket").
Self-explaining option. Insert the desired channel or user which receives the post on pushing to your repositories.
An example user would be @username
, an example channel would be #channelname
.
Here you've got to define the user who is posting the updates. This is the user you've created earlier.
Set this setting to true.
Insert the complete code of the file script.js
into this field.
Log into updown.io, go to Settings.
Add a new webhook (in the bottom-right panel) and paste there the webhook url from Rocket.Chat
After you set-up the integration you can test it by editing the file example-payload.json
as you wish and using curl:
curl -X POST --data-urlencode 'payload=$EXAMPLE_CONTENT' $WEBHOOK_URL