Sha256: 10e910a308f452cae74062dddf9cfed803dd9da76aef26801e0ce91a5af3d6d7
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
class Sysdig::AlertNotifications < Sysdig::Collection model Sysdig::AlertNotification def all(options={}) to = options[:to] || Time.now from = options[:from] || Time.at(Time.now.to_i - 86400) # 1 day load(service.get_alert_notifications(from, to).body.fetch("notifications")) end def get(identity) new( service.get_alert_notification(identity).body.fetch("notification") ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sysdig-0.3.1 | lib/sysdig/alert_notifications.rb |
sysdig-0.3.0 | lib/sysdig/alert_notifications.rb |