Sha256: 468e95bbb798d34b79af2d494cdadf7f3acdebc1b8373a55a5f41fde704e437b

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 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_notifications(from, to).body.fetch("notifications"))
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sysdig-0.2.4 lib/sysdig/alert_notifications.rb
sysdig-0.2.3 lib/sysdig/alert_notifications.rb
sysdig-0.2.0 lib/sysdig/alert_notifications.rb