Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sentry_error_collection_type.rb « error_tracking « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9790560929b72fda3eaa81e82eb384e0dc57f792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true

module Types
  module ErrorTracking
    class SentryErrorCollectionType < ::Types::BaseObject
      graphql_name 'SentryErrorCollection'
      description 'An object containing a collection of Sentry errors, and a detailed error'

      authorize :read_sentry_issue

      field :detailed_error,
            description: 'Detailed version of a Sentry error on the project.',
            resolver: Resolvers::ErrorTracking::SentryDetailedErrorResolver
      field :error_stack_trace,
            description: 'Stack Trace of Sentry Error.',
            resolver: Resolvers::ErrorTracking::SentryErrorStackTraceResolver
      field :errors,
            description: "Collection of Sentry Errors.",
            resolver: Resolvers::ErrorTracking::SentryErrorsResolver
      field :external_url,
            GraphQL::Types::String,
            null: true,
            description: "External URL for Sentry."
    end
  end
end