Class: Sysdig::Alerts
- Inherits:
-
Collection
- Object
- Collection
- Sysdig::Alerts
- Defined in:
- lib/sysdig/alerts.rb
Instance Method Summary collapse
Instance Method Details
#all(params = {}) ⇒ Object
5 6 7 |
# File 'lib/sysdig/alerts.rb', line 5 def all(params={}) load(service.get_alerts.body.fetch("alerts")) end |
#get(identity) ⇒ Object
9 10 11 |
# File 'lib/sysdig/alerts.rb', line 9 def get(identity) new(service.get_alert(identity).body.fetch("alert")) end |