Skip to content

Instantly share code, notes, and snippets.

@tpitale
Created May 4, 2009 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpitale/106554 to your computer and use it in GitHub Desktop.
Save tpitale/106554 to your computer and use it in GitHub Desktop.
report = Garb::Report.new(profile)
report.metrics :exits, :exit_rate
report.dimensions :request_uri
# With Filtering and Sort
report.filter :request_uri.contains => 'fun', :exits.gte => 1000
report.sort :exit_rate.desc
# Getting Results
report.results(:limit => 10,
:offset => 20,
:start_date => (Date.today - 30),
:end_date => Date.today)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment