All files / src/helpers webhookConstants.js

0% Statements 0/3
100% Branches 0/0
100% Functions 0/0
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14                           
/**
 * Constantes partagees pour les webhooks.
 *
 * Utilise par routes/webhooks.js et routes/api/v1/webhooks.js
 * pour centraliser les plateformes et evenements valides.
 *
 * @module helpers/webhookConstants
 */
 
const VALID_PLATFORMS = ['discord', 'slack', 'telegram', 'custom'];
const VALID_EVENTS = ['server_alert', 'server_recovery', 'uptime_down', 'uptime_up', 'backup_error', 'backup_success', 'ssl_expiring', 'ssl_expired', 'ssl_recovery', 'http_error'];
 
module.exports = { VALID_PLATFORMS, VALID_EVENTS };