Module: SentryApi::Client::Issues

Included in:
SentryApi::Client
Defined in:
lib/sentry-api/client/issues.rb

Instance Method Summary collapse

Instance Method Details

#batch_update_issues(project_slug, issue_ids = [], options = {}) ⇒ Array<SentryApi::ObjectifiedHash>

Batch update issues

Examples:

SentryApi.update_client_key('project-slug', ['123', '456'], status:'ignored')

Parameters:

  • project_slug (String)

    the slug of the project the client keys belong to.

  • issue_ids (Array) (defaults to: [])

    An array of issue ids which are to be updated.

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • An (Object)

    object containing the issue fields which are to be updated.

Returns:



25
26
27
# File 'lib/sentry-api/client/issues.rb', line 25

def batch_update_issues(project_slug, issue_ids=[], options={})
  put("/projects/#{@default_org_slug}/#{project_slug}/issues/?id=#{issue_ids.join('&id=')}", body: options)
end

#issues(project_slug, options = {}) ⇒ Array<SentryApi::ObjectifiedHash>

List Issues

Examples:

SentryApi.project_issues('project-slug', {'query': 'is:unresolved Build-version:6.5.0'})

Parameters:

  • project_slug (String)

    the slug of the project the client keys belong to.

  • options (Hash) (defaults to: {})

    A customizable set of options. @option options [String] :statsPeriod an optional stat period (can be one of “24h”, “14d”, and “”).

Options Hash (options):

  • :query (String)

    an optional Sentry structured search query. If not provided an implied “is:resolved” is assumed.)

Returns:



12
13
14
# File 'lib/sentry-api/client/issues.rb', line 12

def issues(project_slug, options={})
  get("/projects/#{@default_org_slug}/#{project_slug}/issues/", query: options)
end