Sha256: 7c416c8e0b19c4394e1b4534e9fc0ddfc56830fed0dbdd9aa66032c43dec0d65
Contents?: true
Size: 1.68 KB
Versions: 2
Compression:
Stored size: 1.68 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 = {}) if !error_id.nil? get "projects/#{project_id}/errors/#{error_id}/trend", options.merge({:query => {:buckets_count => buckets_count}}) else get "projects/#{project_id}/trend", options.merge({:query => {:buckets_count => buckets_count}}) 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 = {}) if !error_id.nil? get "projects/#{project_id}/errors/#{error_id}/trend", options.merge({:query => {:resolution => resolution}}) else get "projects/#{project_id}/trend", options.merge({:query => {:resolution => resolution}}) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bugsnag-api-2.0.1 | lib/bugsnag/api/client/trends.rb |
bugsnag-api-2.0.0 | lib/bugsnag/api/client/trends.rb |