class Sysdig::UserNotifications
Public Instance Methods
fetch_attributes(options={})
click to toggle source
# File lib/sysdig/user_notifications.rb, line 14 def fetch_attributes(options={}) service.get_user_notifications.body.fetch("userNotification") end
save()
click to toggle source
# File lib/sysdig/user_notifications.rb, line 18 def save data = service.update_user_notifications( "sns" => { "enabled" => self.sns_enabled, "topics" => self.sns_topics, }, "email" => { "enabled" => self.email_enabled, "recipients" => self.email_recipients, }, "pagerDuty" => { "enabled" => self.pager_duty_enabled, "integrated" => self.pager_duty_integrated, "resolveOnOk" => self.pager_duty_bind_resolution, "connectUrl" => self.pager_duty_connect_url, }, ).body.fetch("userNotification") merge_attributes(data) end