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

build_activity_graph_service.rb « product_analytics « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 63108d76afd99292b1c4db92ae2987c7a9de0a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module ProductAnalytics
  class BuildActivityGraphService < BuildGraphService
    def execute
      timerange = @params[:timerange].days

      results = product_analytics_events.count_collector_tstamp_by_day(timerange)

      format_results('collector_tstamp', results.transform_keys(&:to_date))
    end
  end
end