module Bugsnag::Api::Client::Trends
Methods for the Pivots
API
Public Instance Methods
trends_buckets(project_id, buckets_count, error_id=nil, options = {})
click to toggle source
List Trends
for an Error
in bucket form
@option filters [Object] An optional filter object, see docs.bugsnagapiv2.apiary.io/#introduction/filtering @return [Array<Sawyer::Resource>] List of Trends
as requested @see docs.bugsnagapiv2.apiary.io/#reference/errors/trends/list-the-trends-for-an-error-(buckets)
# File lib/bugsnag/api/client/trends.rb, line 14 def trends_buckets(project_id, buckets_count, error_id=nil, options = {}) defaults = {:query => {:buckets_count => buckets_count}} merged_opts = deep_merge(defaults, options) if !error_id.nil? get "projects/#{project_id}/errors/#{error_id}/trend", merged_opts else get "projects/#{project_id}/trend", merged_opts end end
trends_resolution(project_id, resolution, error_id=nil, options = {})
click to toggle source
List Trends
for an Error
in resolution form
@option filters [Object] An optional filter object, see docs.bugsnagapiv2.apiary.io/#introduction/filtering @return [Array<Sawyer::Resource>] List of Trends
as requested @see docs.bugsnagapiv2.apiary.io/#reference/errors/trends/list-the-trends-for-an-error-(buckets)
# File lib/bugsnag/api/client/trends.rb, line 29 def trends_resolution(project_id, resolution, error_id=nil, options = {}) defaults = {:query => {:resolution => resolution}} merged_opts = deep_merge(defaults, options) if !error_id.nil? get "projects/#{project_id}/errors/#{error_id}/trend", merged_opts else get "projects/#{project_id}/trend", merged_opts end end