Commit 4d15bc8054750dd0e256e734a2aa941d1eeb7054
1 parent
af36ec26
Exists in
master
and in
1 other branch
all now have standard interval field if desired reflected in super
Showing
6 changed files
with
9 additions
and
9 deletions
Show diff stats
app/models/notification_services/campfire_service.rb
| 1 | if defined? Campy | 1 | if defined? Campy |
| 2 | class NotificationServices::CampfireService < NotificationService | 2 | class NotificationServices::CampfireService < NotificationService |
| 3 | Label = "campfire" | 3 | Label = "campfire" |
| 4 | - Fields = [ | 4 | + Fields += [ |
| 5 | [:subdomain, { | 5 | [:subdomain, { |
| 6 | :label => "Subdomain", | 6 | :label => "Subdomain", |
| 7 | :placeholder => "subdomain from http://{{subdomain}}.campfirenow.com" | 7 | :placeholder => "subdomain from http://{{subdomain}}.campfirenow.com" |
| @@ -33,4 +33,4 @@ if defined? Campy | @@ -33,4 +33,4 @@ if defined? Campy | ||
| 33 | campy.speak "[errbit] #{problem.app.name} #{notification_description problem} - http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}/problems/#{problem.id.to_s}" | 33 | campy.speak "[errbit] #{problem.app.name} #{notification_description problem} - http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}/problems/#{problem.id.to_s}" |
| 34 | end | 34 | end |
| 35 | end | 35 | end |
| 36 | -end | ||
| 37 | \ No newline at end of file | 36 | \ No newline at end of file |
| 37 | +end |
app/models/notification_services/gtalk_service.rb
| 1 | class NotificationServices::GtalkService < NotificationService | 1 | class NotificationServices::GtalkService < NotificationService |
| 2 | Label = "gtalk" | 2 | Label = "gtalk" |
| 3 | - Fields = [ | 3 | + Fields += [ |
| 4 | [:subdomain, { | 4 | [:subdomain, { |
| 5 | :placeholder => "username@example.com", | 5 | :placeholder => "username@example.com", |
| 6 | :label => "Username" | 6 | :label => "Username" |
app/models/notification_services/hipchat_service.rb
| 1 | if defined? HipChat | 1 | if defined? HipChat |
| 2 | class NotificationServices::HipchatService < NotificationService | 2 | class NotificationServices::HipchatService < NotificationService |
| 3 | Label = 'hipchat' | 3 | Label = 'hipchat' |
| 4 | - Fields = [ | 4 | + Fields += [ |
| 5 | [:api_token, { | 5 | [:api_token, { |
| 6 | :placeholder => "API Token" | 6 | :placeholder => "API Token" |
| 7 | }], | 7 | }], |
app/models/notification_services/hoiio_service.rb
| 1 | class NotificationServices::HoiioService < NotificationService | 1 | class NotificationServices::HoiioService < NotificationService |
| 2 | Label = "hoiio" | 2 | Label = "hoiio" |
| 3 | - Fields = [ | 3 | + Fields += [ |
| 4 | [:api_token, { | 4 | [:api_token, { |
| 5 | :placeholder => "App ID", | 5 | :placeholder => "App ID", |
| 6 | :label => "App ID" | 6 | :label => "App ID" |
| @@ -39,4 +39,4 @@ class NotificationServices::HoiioService < NotificationService | @@ -39,4 +39,4 @@ class NotificationServices::HoiioService < NotificationService | ||
| 39 | end | 39 | end |
| 40 | 40 | ||
| 41 | end | 41 | end |
| 42 | -end | ||
| 43 | \ No newline at end of file | 42 | \ No newline at end of file |
| 43 | +end |
app/models/notification_services/hubot_service.rb
| 1 | class NotificationServices::HubotService < NotificationService | 1 | class NotificationServices::HubotService < NotificationService |
| 2 | Label = "hubot" | 2 | Label = "hubot" |
| 3 | - Fields = [ | 3 | + Fields += [ |
| 4 | [:api_token, { | 4 | [:api_token, { |
| 5 | :placeholder => 'http://hubot.example.org:8080/hubot/say', | 5 | :placeholder => 'http://hubot.example.org:8080/hubot/say', |
| 6 | :label => 'Hubot URL' | 6 | :label => 'Hubot URL' |
app/models/notification_services/pushover_service.rb
| 1 | class NotificationServices::PushoverService < NotificationService | 1 | class NotificationServices::PushoverService < NotificationService |
| 2 | Label = "pushover" | 2 | Label = "pushover" |
| 3 | - Fields = [ | 3 | + Fields += [ |
| 4 | [:api_token, { | 4 | [:api_token, { |
| 5 | :placeholder => "User Key", | 5 | :placeholder => "User Key", |
| 6 | :label => "User Key" | 6 | :label => "User Key" |
| @@ -29,4 +29,4 @@ class NotificationServices::PushoverService < NotificationService | @@ -29,4 +29,4 @@ class NotificationServices::PushoverService < NotificationService | ||
| 29 | notification.notify(api_token, "#{notification_description problem}", :priority => 1, :title => "Errbit Notification", :url => "http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}", :url_title => "Link to error") | 29 | notification.notify(api_token, "#{notification_description problem}", :priority => 1, :title => "Errbit Notification", :url => "http://#{Errbit::Config.host}/apps/#{problem.app.id.to_s}", :url_title => "Link to error") |
| 30 | 30 | ||
| 31 | end | 31 | end |
| 32 | -end | ||
| 33 | \ No newline at end of file | 32 | \ No newline at end of file |
| 33 | +end |