Commit f335ace6414e3f283137de28a96b51fb6a94e229
1 parent
368044d1
Exists in
master
and in
1 other branch
adding missing url's for notification's services
Showing
3 changed files
with
12 additions
and
0 deletions
Show diff stats
app/models/notification_services/hipchat_service.rb
@@ -17,6 +17,10 @@ if defined? HipChat | @@ -17,6 +17,10 @@ if defined? HipChat | ||
17 | end | 17 | end |
18 | end | 18 | end |
19 | 19 | ||
20 | + def url | ||
21 | + "https://www.hipchat.com/sign_in" | ||
22 | + end | ||
23 | + | ||
20 | def create_notification(problem) | 24 | def create_notification(problem) |
21 | url = app_problem_url problem.app, problem | 25 | url = app_problem_url problem.app, problem |
22 | message = <<-MSG.strip_heredoc | 26 | message = <<-MSG.strip_heredoc |
app/models/notification_services/hoiio_service.rb
@@ -21,6 +21,10 @@ class NotificationServices::HoiioService < NotificationService | @@ -21,6 +21,10 @@ class NotificationServices::HoiioService < NotificationService | ||
21 | end | 21 | end |
22 | end | 22 | end |
23 | 23 | ||
24 | + def url | ||
25 | + "https://secure.hoiio.com/user/" | ||
26 | + end | ||
27 | + | ||
24 | def notification_description(problem) | 28 | def notification_description(problem) |
25 | "[#{ problem.environment }]#{problem.message.to_s.truncate(50)}" | 29 | "[#{ problem.environment }]#{problem.message.to_s.truncate(50)}" |
26 | end | 30 | end |
app/models/notification_services/pushover_service.rb
@@ -17,6 +17,10 @@ class NotificationServices::PushoverService < NotificationService | @@ -17,6 +17,10 @@ class NotificationServices::PushoverService < NotificationService | ||
17 | end | 17 | end |
18 | end | 18 | end |
19 | 19 | ||
20 | + def url | ||
21 | + "https://pushover.net/login" | ||
22 | + end | ||
23 | + | ||
20 | def create_notification(problem) | 24 | def create_notification(problem) |
21 | # build the hoi client | 25 | # build the hoi client |
22 | notification = Rushover::Client.new(subdomain) | 26 | notification = Rushover::Client.new(subdomain) |