Class: Metrics::Dashboard::BaseEmbedService

Inherits:
BaseService show all
Defined in:
app/services/metrics/dashboard/base_embed_service.rb

Constant Summary

Constants inherited from BaseService

Metrics::Dashboard::BaseService::SEQUENCE, Metrics::Dashboard::BaseService::STAGES

Constants included from Gitlab::Metrics::Dashboard::Errors

Gitlab::Metrics::Dashboard::Errors::DashboardProcessingError, Gitlab::Metrics::Dashboard::Errors::LayoutError, Gitlab::Metrics::Dashboard::Errors::MissingIntegrationError, Gitlab::Metrics::Dashboard::Errors::MissingQueryError, Gitlab::Metrics::Dashboard::Errors::NOT_FOUND_ERROR, Gitlab::Metrics::Dashboard::Errors::PanelNotFoundError

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

all_dashboard_paths, #get_dashboard, out_of_the_box_dashboard?, #raw_dashboard

Methods included from Gitlab::Metrics::Dashboard::Errors

#handle_errors, #panels_not_found!

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

Class Method Details

.embedded?(embed_param) ⇒ Boolean

Returns:

  • (Boolean)

8
9
10
# File 'app/services/metrics/dashboard/base_embed_service.rb', line 8

def self.embedded?(embed_param)
  ActiveModel::Type::Boolean.new.cast(embed_param)
end

Instance Method Details

#cache_keyObject


12
13
14
# File 'app/services/metrics/dashboard/base_embed_service.rb', line 12

def cache_key
  "dynamic_metrics_dashboard_#{identifiers}"
end