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

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

Parameters:

  • filters (Hash)

    a customizable set of options

  • sort (Hash)

    a customizable set of options

  • base (Hash)

    a customizable set of options

Returns:

  • (Array<Sawyer::Resource>)

    List of values for the Pivots requested

See Also:



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, options = {})
  if error_id.nil?
    paginate "projects/#{project_id}/pivots/#{ef_display_id}/values", options
  else
    paginate "projects/#{project_id}/errors/#{error_id}/pivots/#{ef_display_id}/values", options
  end
end

#pivots(project_id, error_id = nil, options = {}) ⇒ Array<Sawyer::Resource>

List Pivots on an Error

Parameters:

  • filters (Hash)

    a customizable set of options

  • summary_size (Hash)

    a customizable set of options

  • pivots (Hash)

    a customizable set of options

  • per_page (Hash)

    a customizable set of options

Returns:

  • (Array<Sawyer::Resource>)

    List of Pivots for the Error specified

See Also:



17
18
19
20
21
22
23
# File 'lib/bugsnag/api/client/pivots.rb', line 17

def pivots(project_id, error_id=nil, options = {})
  if error_id.nil?
    get "projects/#{project_id}/pivots", options
  else
    paginate "projects/#{project_id}/errors/#{error_id}/pivots", options
  end
end