Class: Sysdig::GetAlertNotifications

Inherits:
Request
  • Object
show all
Defined in:
lib/sysdig/get_alert_notifications.rb

Instance Method Summary collapse

Instance Method Details

#real(from, to) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/sysdig/get_alert_notifications.rb', line 2

def real(from, to)
  from_i = from.to_i * 1_000_000
  to_i   = to.to_i   * 1_000_000

  service.request(
    :path   => "/api/notifications",
    :params => {"from" => from_i, "to" => to_i},
  )
end