2016-03-29 11:40:44 +03:00
|
|
|
// # Slack API
|
|
|
|
// API for sending Test Notifications to Slack
|
2017-09-12 18:31:14 +03:00
|
|
|
var Promise = require('bluebird'),
|
2017-12-12 00:47:46 +03:00
|
|
|
common = require('../lib/common'),
|
2016-03-29 11:40:44 +03:00
|
|
|
slack;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ## Slack API Method
|
|
|
|
*
|
2017-12-12 00:47:46 +03:00
|
|
|
* **See:** [API Methods](index.js.html#api%20methods)
|
2016-03-29 11:40:44 +03:00
|
|
|
* @typedef Slack
|
|
|
|
* @param slack
|
|
|
|
*/
|
|
|
|
slack = {
|
|
|
|
/**
|
|
|
|
* ### SendTest
|
|
|
|
* Send a test notification
|
|
|
|
*
|
|
|
|
* @public
|
|
|
|
*/
|
|
|
|
sendTest: function () {
|
2017-12-12 00:47:46 +03:00
|
|
|
common.events.emit('slack.test');
|
2016-03-29 11:40:44 +03:00
|
|
|
return Promise.resolve();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = slack;
|