Class: Sysdig::AlertNotifications
- Inherits:
-
Collection
- Object
- Collection
- Sysdig::AlertNotifications
- Defined in:
- lib/sysdig/alert_notifications.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/sysdig/alert_notifications.rb', line 5 def all(={}) to = [:to] || Time.now from = [:from] || Time.at(Time.now.to_i - 86400) # 1 day load(service.get_notifications(from, to).body.fetch("notifications")) end |