Sha256: 0a71254d10fad78a96612b3d6e05234896328480d25d6903079c4b58bfe82ad6

Contents?: true

Size: 406 Bytes

Versions: 129

Compression:

Stored size: 406 Bytes

Contents

module NotificationHelpers
  def notification_event(args={})
    args = {
      :name => 'process_action.action_controller',
      :start => fixed_time,
      :ending => fixed_time + 0.1,
      :tid => '1',
      :payload => http_request_env_with_data
    }.merge(args)
    ActiveSupport::Notifications::Event.new(
      args[:name], args[:start], args[:ending], args[:tid], args[:payload]
    )
  end
end

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
appsignal-1.1.0.beta.13 spec/support/helpers/notification_helpers.rb
appsignal-1.1.0.beta.12 spec/support/helpers/notification_helpers.rb
appsignal-1.0.7 spec/support/helpers/notification_helpers.rb
appsignal-1.0.6 spec/support/helpers/notification_helpers.rb
appsignal-1.1.0.beta.11 spec/support/helpers/notification_helpers.rb
appsignal-1.0.6.beta.4 spec/support/helpers/notification_helpers.rb
appsignal-1.1.0.beta.10 spec/support/helpers/notification_helpers.rb
appsignal-1.0.6.beta.3 spec/support/helpers/notification_helpers.rb
appsignal-1.1.0.beta.9 spec/support/helpers/notification_helpers.rb
appsignal-1.0.6.beta.2 spec/support/helpers/notification_helpers.rb
appsignal-1.1.0.beta.8 spec/support/helpers/notification_helpers.rb
appsignal-1.0.6.beta.1 spec/support/helpers/notification_helpers.rb
appsignal-1.0.5 spec/support/helpers/notification_helpers.rb
appsignal-1.1.0.beta.7 spec/support/helpers/notification_helpers.rb
appsignal-1.0.5.beta.4 spec/support/helpers/notification_helpers.rb
appsignal-1.0.5.beta.3 spec/support/helpers/notification_helpers.rb
appsignal-1.0.5.beta.2 spec/support/helpers/notification_helpers.rb
appsignal-1.0.5.beta.1 spec/support/helpers/notification_helpers.rb
appsignal-1.0.4 spec/support/helpers/notification_helpers.rb
appsignal-1.1.0.beta.6 spec/support/helpers/notification_helpers.rb