debian-mirror-gitlab/lib/api/entities/error_tracking.rb

29 lines
620 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
module ErrorTracking
class ProjectSetting < Grape::Entity
expose :enabled, as: :active
expose :project_name
expose :sentry_external_url
expose :api_url
2021-10-27 15:23:28 +05:30
expose :integrated
2022-05-07 20:08:51 +05:30
def integrated
return false unless ::Feature.enabled?(:integrated_error_tracking, object.project)
object.integrated_client?
end
2020-03-13 15:44:24 +05:30
end
2021-11-11 11:23:49 +05:30
class ClientKey < Grape::Entity
expose :id
expose :active
expose :public_key
expose :sentry_dsn
end
2020-03-13 15:44:24 +05:30
end
end
end