Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions hooks/spike/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### Spike

Sends 'Trigger events' to Spike.

- On Spike's dashboard, add a new Errorception integration
- Copy the integration's webhook URL to use it on our dashboard

Here are few Simple steps to get your Integration URL in [Spike](https://docs.spike.sh/integrations-guideline/create-integration-and-service-on-dashboard).
27 changes: 27 additions & 0 deletions hooks/spike/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
var request = require("request"),
path = require("path");

exports.serviceName = "Spike";

exports.author = {
name: "Kaushik Thirthappa",
email: "[email protected]",
github: "ktkaushik",
twitter: "ktkaushik"
};

exports.onError = function(error, settings, done) {

request({
url: settings.url,
headers: {
"Content-Type": "application/json",
"User-Agent": "Spike Notification"
},
method: "post",
body: JSON.stringify({
details: error
}),
timeout: 10000
}, done);
};