Class: Metrics::Dashboard::BaseEmbedService
- Inherits:
-
BaseService
- Object
- BaseService
- BaseService
- Metrics::Dashboard::BaseEmbedService
- Defined in:
- app/services/metrics/dashboard/base_embed_service.rb
Direct Known Subclasses
CustomMetricEmbedService, DefaultEmbedService, DynamicEmbedService, GitlabAlertEmbedService, GrafanaMetricEmbedService, TransientEmbedService
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
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
Constructor Details
This class inherits a constructor from BaseService
Class Method Details
.embedded?(embed_param) ⇒ Boolean
8 9 10 |
# File 'app/services/metrics/dashboard/base_embed_service.rb', line 8 def self.() ActiveModel::Type::Boolean.new.cast() end |
Instance Method Details
#cache_key ⇒ Object
12 13 14 |
# File 'app/services/metrics/dashboard/base_embed_service.rb', line 12 def cache_key "dynamic_metrics_dashboard_#{identifiers}" end |