Sha256: 71f6fc14df02b950621821da26f51501553c44fa7fa9410739b8b4d6e3d7d9f4

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 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.to_i)
      },
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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