Module: Bugsnag::Api::Client::Pivots
- Included in:
- Bugsnag::Api::Client
- Defined in:
- lib/bugsnag/api/client/pivots.rb
Overview
Methods for the Pivots API
Instance Method Summary collapse
-
#pivot_values(project_id, ef_display_id, error_id = nil, options = {}) ⇒ Array<Sawyer::Resource>
List values of a Pivot on an Error.
-
#pivots(project_id, error_id = nil, options = {}) ⇒ Array<Sawyer::Resource>
List Pivots on an Error.
Instance Method Details
#pivot_values(project_id, ef_display_id, error_id = nil, options = {}) ⇒ Array<Sawyer::Resource>
List values of a Pivot on an Error
32 33 34 35 36 37 38 |
# File 'lib/bugsnag/api/client/pivots.rb', line 32 def pivot_values(project_id, ef_display_id, error_id=nil, = {}) if error_id.nil? paginate "projects/#{project_id}/pivots/#{ef_display_id}/values", else paginate "projects/#{project_id}/errors/#{error_id}/pivots/#{ef_display_id}/values", end end |
#pivots(project_id, error_id = nil, options = {}) ⇒ Array<Sawyer::Resource>
List Pivots on an Error
17 18 19 20 21 22 23 |
# File 'lib/bugsnag/api/client/pivots.rb', line 17 def pivots(project_id, error_id=nil, = {}) if error_id.nil? get "projects/#{project_id}/pivots", else paginate "projects/#{project_id}/errors/#{error_id}/pivots", end end |