summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics/production_stage.rb
blob: 104c6d3fd303d142c44b4466c3c1ad1f67b808e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Gitlab
  module CycleAnalytics
    class ProductionStage < BaseStage
      def initialize(*args)
        @start_time_attrs = issue_table[:created_at]
        @end_time_attrs = mr_metrics_table[:first_deployed_to_production_at]

        super(*args)
      end

      def stage
        :production
      end

      def description
        "From issue creation until deploy to production"
      end
    end
  end
end