debian-mirror-gitlab/app/serializers/analytics/cycle_analytics/configuration_entity.rb
2023-03-05 14:24:40 +05:30

18 lines
422 B
Ruby

# frozen_string_literal: true
module Analytics
module CycleAnalytics
class ConfigurationEntity < Grape::Entity
include RequestAwareEntity
expose :events, using: Analytics::CycleAnalytics::EventEntity
expose :stages, using: Analytics::CycleAnalytics::StageEntity
private
def events
Gitlab::Analytics::CycleAnalytics::StageEvents.selectable_events
end
end
end
end