class Sysdig::DestroyAlert

Public Instance Methods

mock(identity) click to toggle source
# File lib/sysdig/destroy_alert.rb, line 9
def mock(identity)
  service.data[:alerts].fetch(identity)
  service.data[:alerts].delete(identity)

  service.response(
    :status => 204,
  )
end
real(identity) click to toggle source
# File lib/sysdig/destroy_alert.rb, line 2
def real(identity)
  service.request(
    :method => :delete,
    :path   => File.join("/api/alerts", identity.to_s)
  )
end