Class: Gitlab::Analytics::CycleAnalytics::StageEvents::MetricsBasedStageEvent

Inherits:
StageEvent
  • Object
show all
Defined in:
lib/gitlab/analytics/cycle_analytics/stage_events/metrics_based_stage_event.rb

Instance Method Summary collapse

Methods inherited from StageEvent

identifier, #initialize, label_based?, name, #object_type, #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

Instance Method Details

#apply_query_customization(query) ⇒ Object

rubocop: disable CodeReuse/ActiveRecord


9
10
11
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/metrics_based_stage_event.rb', line 9

def apply_query_customization(query)
  query.joins(:metrics)
end

#column_listObject


15
16
17
# File 'lib/gitlab/analytics/cycle_analytics/stage_events/metrics_based_stage_event.rb', line 15

def column_list
  [timestamp_projection]
end