class ScalingoBackupsManager::Notification
Public Class Methods
send_discord_notification(hook_url, message)
click to toggle source
# File lib/scalingo_backups_manager/notification.rb, line 16 def self.send_discord_notification(hook_url, message) payload = { user: 'Scalingo backups manager', content: message }.to_json HTTParty.post( hook_url, body: payload, headers: { 'Content-Type': 'application/json' } ) end
send_slack_notification(hook_url, message)
click to toggle source
# File lib/scalingo_backups_manager/notification.rb, line 6 def self.send_slack_notification(hook_url, message) HTTParty.post( hook_url, body: { message: message }.to_json, headers: { 'Content-Type' => 'application/json' } ) end