2019-01-09 16:04:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-03-04 10:11:19 -05:00
|
|
|
# This should be in the ErrorTracking namespace. For more details, see:
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/323342
|
2019-01-09 16:04:27 -05:00
|
|
|
module Gitlab
|
|
|
|
module ErrorTracking
|
|
|
|
class Error
|
|
|
|
include ActiveModel::Model
|
2020-01-29 07:09:08 -05:00
|
|
|
include GlobalID::Identification
|
2019-01-09 16:04:27 -05:00
|
|
|
|
|
|
|
attr_accessor :id, :title, :type, :user_count, :count,
|
|
|
|
:first_seen, :last_seen, :message, :culprit,
|
|
|
|
:external_url, :project_id, :project_name, :project_slug,
|
|
|
|
:short_id, :status, :frequency
|
2020-01-29 07:09:08 -05:00
|
|
|
|
|
|
|
def self.declarative_policy_class
|
|
|
|
'ErrorTracking::BasePolicy'
|
|
|
|
end
|
2019-01-09 16:04:27 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|