Commit f335ace6414e3f283137de28a96b51fb6a94e229

Authored by Shuky Dvir
1 parent 368044d1
Exists in master and in 1 other branch production

adding missing url's for notification's services

app/models/notification_services/hipchat_service.rb
... ... @@ -17,6 +17,10 @@ if defined? HipChat
17 17 end
18 18 end
19 19  
  20 + def url
  21 + "https://www.hipchat.com/sign_in"
  22 + end
  23 +
20 24 def create_notification(problem)
21 25 url = app_problem_url problem.app, problem
22 26 message = <<-MSG.strip_heredoc
... ...
app/models/notification_services/hoiio_service.rb
... ... @@ -21,6 +21,10 @@ class NotificationServices::HoiioService &lt; NotificationService
21 21 end
22 22 end
23 23  
  24 + def url
  25 + "https://secure.hoiio.com/user/"
  26 + end
  27 +
24 28 def notification_description(problem)
25 29 "[#{ problem.environment }]#{problem.message.to_s.truncate(50)}"
26 30 end
... ...
app/models/notification_services/pushover_service.rb
... ... @@ -17,6 +17,10 @@ class NotificationServices::PushoverService &lt; NotificationService
17 17 end
18 18 end
19 19  
  20 + def url
  21 + "https://pushover.net/login"
  22 + end
  23 +
20 24 def create_notification(problem)
21 25 # build the hoi client
22 26 notification = Rushover::Client.new(subdomain)
... ...