debian-mirror-gitlab/lib/gitlab/error_tracking/detailed_error.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.4 KiB
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
2021-04-17 20:07:23 +05:30
# This should be in the ErrorTracking namespace. For more details, see:
# https://gitlab.com/gitlab-org/gitlab/-/issues/323342
2019-12-26 22:10:19 +05:30
module Gitlab
module ErrorTracking
class DetailedError
include ActiveModel::Model
2020-01-01 13:55:28 +05:30
include GlobalID::Identification
2019-12-26 22:10:19 +05:30
attr_accessor :count,
:culprit,
:external_base_url,
:external_url,
:first_release_last_commit,
:first_release_short_version,
2020-03-13 15:44:24 +05:30
:first_release_version,
2019-12-26 22:10:19 +05:30
:first_seen,
:frequency,
2020-03-13 15:44:24 +05:30
:gitlab_commit,
:gitlab_commit_path,
2020-01-01 13:55:28 +05:30
:gitlab_issue,
2020-03-13 15:44:24 +05:30
:gitlab_project,
2019-12-26 22:10:19 +05:30
:id,
2021-11-18 22:05:49 +05:30
:integrated,
2019-12-26 22:10:19 +05:30
:last_release_last_commit,
:last_release_short_version,
2020-07-28 23:09:34 +05:30
:last_release_version,
2019-12-26 22:10:19 +05:30
:last_seen,
:message,
:project_id,
:project_name,
:project_slug,
:short_id,
:status,
2020-03-13 15:44:24 +05:30
:tags,
2019-12-26 22:10:19 +05:30
:title,
:type,
:user_count
2020-01-01 13:55:28 +05:30
def self.declarative_policy_class
2020-03-13 15:44:24 +05:30
'ErrorTracking::BasePolicy'
2020-01-01 13:55:28 +05:30
end
2019-12-26 22:10:19 +05:30
end
end
end