Sha256: a574417248343df64994af79f7488bfb2f533e1591a8d454ae602e3d7bdfdd30

Contents?: true

Size: 231 Bytes

Versions: 6

Compression:

Stored size: 231 Bytes

Contents

class Sysdig::Alerts < Sysdig::Collection

  model Sysdig::Alert

  def all(params={})
    load(service.get_alerts.body.fetch("alerts"))
  end

  def get(identity)
    new(service.get_alert(identity).body.fetch("alert"))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sysdig-0.3.1 lib/sysdig/alerts.rb
sysdig-0.3.0 lib/sysdig/alerts.rb
sysdig-0.2.4 lib/sysdig/alerts.rb
sysdig-0.2.3 lib/sysdig/alerts.rb
sysdig-0.2.0 lib/sysdig/alerts.rb
sysdig-0.1.0 lib/sysdig/alerts.rb