This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

uptime-slack

0.0.3 • Public • Published

Uptime Slack webhook plugin

This Uptime plugin notifies all configured events (up, down, paused, restarted) by sending a HTTPS POST request to a slack.com URL.

Based on mintbridge/uptime-webhooks plugin.

To use this plugin, first install it using npm while in the Uptime directory:

$ npm install uptime-slack

Then to enable it, add it to the plugins/index.js, as follows:

// in plugins/index.js
exports.init = function() {
  require('uptime-slack').init();
}

Customize the plugin settings in the config/production.yaml configuration file, as in the example below:

webhooks:
  event:
    up:
      - 'https://xxxx.slack.com/services/hooks/incoming-webhook?token=xxxxxx'
    down:
      - 'https://xxxx.slack.com/services/hooks/incoming-webhook?token=xxxxxx'
    paused:
      - 'https://xxxx.slack.com/services/hooks/incoming-webhook?token=xxxxxx'
    restarted:
      - 'https://xxxx.slack.com/services/hooks/incoming-webhook?token=xxxxxx'
  dashboardUrl: 'http://uptime.example.com'
  channel:      '#slack-channel'
  username:     'uptime'
  icon_emoji:   ':fire:'

Readme

Keywords

Package Sidebar

Install

npm i uptime-slack

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • odlevakp