summaryrefslogtreecommitdiff
path: root/lib/gitlab/error_tracking/detailed_error.rb
blob: 5d272efa64aeaeaf877d3447be391cfcc21a9873 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# frozen_string_literal: true

module Gitlab
  module ErrorTracking
    class DetailedError
      include ActiveModel::Model
      include GlobalID::Identification

      attr_accessor :count,
                    :culprit,
                    :external_base_url,
                    :external_url,
                    :first_release_last_commit,
                    :first_release_short_version,
                    :first_release_version,
                    :first_seen,
                    :frequency,
                    :gitlab_commit,
                    :gitlab_commit_path,
                    :gitlab_issue,
                    :gitlab_project,
                    :id,
                    :last_release_last_commit,
                    :last_release_short_version,
                    :last_release_version,
                    :last_seen,
                    :message,
                    :project_id,
                    :project_name,
                    :project_slug,
                    :short_id,
                    :status,
                    :tags,
                    :title,
                    :type,
                    :user_count

      def self.declarative_policy_class
        'ErrorTracking::BasePolicy'
      end
    end
  end
end