Class: Sysdig::DestroyAlert
- Inherits:
-
Request
- Object
- Request
- Sysdig::DestroyAlert
- Defined in:
- lib/sysdig/destroy_alert.rb
Instance Method Summary collapse
Instance Method Details
#mock(identity) ⇒ Object
9 10 11 12 13 14 15 16 |
# 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) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/sysdig/destroy_alert.rb', line 2 def real(identity) service.request( :method => :delete, :path => File.join("/api/alerts", identity.to_s) ) end |