Class: Gitlab::Analytics::CycleAnalytics::StageEvents::MergeRequestMerged

Inherits:
MetricsBasedStageEvent show all
Defined in:
lib/gitlab/analytics/cycle_analytics/stage_events/merge_request_merged.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MetricsBasedStageEvent

#apply_negated_query_customization, #apply_query_customization, #include_in

Methods inherited from StageEvent

#apply_negated_query_customization, #apply_query_customization, #hash_code, #html_description, #include_in, #initialize, label_based?, #timestamp_projection

Methods included from Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Methods included from CycleAnalytics::MetricsTables

#build_table, #issue_metrics_table, #issue_table, #mr_closing_issues_table, #mr_diff_commits_table, #mr_diff_table, #mr_metrics_table, #mr_table, #projects_table, #routes_table, #user_table

Constructor Details

This class inherits a constructor from Gitlab::Analytics::CycleAnalytics::StageEvents::StageEvent

Class Method Details

.identifierObject



12
13
14
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/merge_request_merged.rb', line 12

def self.identifier
  :merge_request_merged
end

.nameObject



8
9
10
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/merge_request_merged.rb', line 8

def self.name
  s_("CycleAnalyticsEvent|Merge request merged")
end

Instance Method Details

#column_listObject



20
21
22
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/merge_request_merged.rb', line 20

def column_list
  [mr_metrics_table[:merged_at]]
end

#object_typeObject



16
17
18
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/merge_request_merged.rb', line 16

def object_type
  MergeRequest
end