Sha256: fc83856cc5983858c662ae5b0c3a6278fc5370fea861046ce1fc4e2708ecf6be
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
class Sysdig::PagerDutyNotification < Sysdig::UserNotification type :pagerDuty attribute :enabled, type: :boolean attribute :integrated, type: :boolean attribute :bind_resolution, type: :boolean, alias: "resolveOnOk" attribute :connect_url, alias: "connectUrl" def save notification = service.update_user_notifications("pagerDuty" => { "enabled" => self.enabled, "integrated" => self.integrated, "resolveOnOk" => self.bind_resolution, "connectUrl" => self.connect_url, }).body.fetch("userNotification") merge_attributes(notification.fetch("pagerDuty")) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sysdig-0.2.3 | lib/sysdig/pager_duty_notification.rb |
sysdig-0.2.0 | lib/sysdig/pager_duty_notification.rb |