Sha256: 9798d8faf94948742dba33a7487a26385d06b5b8119420eaeff1c1164f9edc79

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

class Sysdig::GetAlertNotification < Sysdig::Request
  def real(notification_id)
    service.request(
      :path => File.join("/api/notifications", notification_id.to_s),
    )
  end

  def mock(notification_id)
    service.response(
      :body => {
        "notification" => service.data[:alert_notifications].fetch(notification_id)
      },
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sysdig-0.3.0 lib/sysdig/get_alert_notification.rb