Class: Metrics::Dashboard::CloneDashboardService

Inherits:
BaseService
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize, Stepable
Defined in:
app/services/metrics/dashboard/clone_dashboard_service.rb

Constant Summary collapse

ALLOWED_FILE_TYPE =
'.yml'
USER_DASHBOARDS_DIR =
::Gitlab::Metrics::Dashboard::RepoDashboardFinder::DASHBOARD_ROOT
SEQUENCES =
{
  ::Metrics::Dashboard::SystemDashboardService::DASHBOARD_PATH => [
    ::Gitlab::Metrics::Dashboard::Stages::CommonMetricsInserter,
    ::Gitlab::Metrics::Dashboard::Stages::CustomMetricsInserter
  ].freeze,

  ::Metrics::Dashboard::SelfMonitoringDashboardService::DASHBOARD_PATH => [
    ::Gitlab::Metrics::Dashboard::Stages::CustomMetricsInserter
  ].freeze,

  ::Metrics::Dashboard::ClusterDashboardService::DASHBOARD_PATH => [
    ::Gitlab::Metrics::Dashboard::Stages::CommonMetricsInserter
  ].freeze
}.freeze

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods included from Stepable

#execute_steps, #steps

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from BaseService

Instance Method Details

#executeObject


35
36
37
# File 'app/services/metrics/dashboard/clone_dashboard_service.rb', line 35

def execute
  execute_steps
end