Class: AbstractAnalyzer::Middleware::Rails::Dash::Analyzer

Inherits:
DashAnalyzer::Base show all
Defined in:
lib/middleware/rails/dash.rb

Overview

This is where we grab the analytics

Instance Attribute Summary

Attributes inherited from DashAnalyzer::Base

#db, #logger

Instance Method Summary collapse

Methods inherited from DashAnalyzer::Base

#call, #startup_dash

Constructor Details

#initializeAnalyzer

Fiveruns::Dash.register_recipe :actionpack, :url => ‘example.org’ do |recipe|

Fiveruns::Dash.logger.info 'REGISTERING ACTIONPACK RECIPE'

recipe.time :response_time, :method => 'AbstractController::Base#process_action', :mark => true

end



15
16
17
18
19
20
21
22
# File 'lib/middleware/rails/dash.rb', line 15

def initialize(*)
  # Fiveruns::Dash::Rails.load_recipes
  
  #@recipes = [{:name => :actionpack, :url => 'http://example.org'}]
  @recipes = [{:name => :ruby, :url => 'http://dash.fiveruns.com'},
              {:name => :rails, :url => 'http://dash.fiveruns.com'}]
  super
end