class Sysdig::GetAlertNotification
Public Instance Methods
mock(notification_id)
click to toggle source
# File lib/sysdig/get_alert_notification.rb, line 8 def mock(notification_id) service.response( :body => { "notification" => service.data[:alert_notifications].fetch(notification_id.to_i) }, ) end
real(notification_id)
click to toggle source
# File lib/sysdig/get_alert_notification.rb, line 2 def real(notification_id) service.request( :path => File.join("/api/notifications", notification_id.to_s), ) end