Sha256: 9467864abb793299eb5b72b43ffeafd86609ad0279d7f7db67b5fbeb5b15db28
Contents?: true
Size: 528 Bytes
Versions: 4
Compression:
Stored size: 528 Bytes
Contents
class Sysdig::UpdateAlert < Sysdig::Request # @note alert[version] might mean lock version which should be fun def real(alert_id, alert) service.request( :method => :put, :path => File.join("/api/alerts", alert_id.to_s), :body => { "alert" => Sysdig::CreateAlert.slice(alert) }, ) end def mock(alert_id, alert) body = service.data[:alerts].fetch(alert_id.to_i) body.merge!(Sysdig::CreateAlert.slice(alert)) service.response( :body => {"alert" => body}, ) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sysdig-0.3.1 | lib/sysdig/update_alert.rb |
sysdig-0.3.0 | lib/sysdig/update_alert.rb |
sysdig-0.2.4 | lib/sysdig/update_alert.rb |
sysdig-0.2.3 | lib/sysdig/update_alert.rb |