Sha256: 433fa67b790f8e46358fb0bce48fced8a06cefd92d4e5a0584c15ebafcc98e3f
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 KB
Contents
module Bugsnag module Api class Client # Methods for the Pivots API # # @see http://docs.bugsnagapiv2.apiary.io/#reference/errors/trends module Trends # List Trends for an Error in bucket form # # @option filters [Object] An optional filter object, see http://docs.bugsnagapiv2.apiary.io/#introduction/filtering # @return [Array<Sawyer::Resource>] List of Trends as requested # @see http://docs.bugsnagapiv2.apiary.io/#reference/errors/trends/list-the-trends-for-an-error-(buckets) 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 # List Trends for an Error in resolution form # # @option filters [Object] An optional filter object, see http://docs.bugsnagapiv2.apiary.io/#introduction/filtering # @return [Array<Sawyer::Resource>] List of Trends as requested # @see http://docs.bugsnagapiv2.apiary.io/#reference/errors/trends/list-the-trends-for-an-error-(buckets) 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 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bugsnag-api-2.0.2 | lib/bugsnag/api/client/trends.rb |