Welcome to mirror list, hosted at ThFree Co, Russian Federation.

events_fetcher.rb « cycle_analytics « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 714afb888330f6fda91df1754c76220335f23373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Gitlab
  module CycleAnalytics
    class EventsFetcher
      include MetricsFetcher

      def initialize(project:, options:)
        @query = EventsQuery.new(project: project, options: options)
      end

      def fetch(stage:)
        @query.execute(stage) do |stage_class, base_query|
          stage_class.query(base_query)
        end
      end
    end
  end
end