Class: Gitlab::Metrics::Dashboard::Stages::AlertsInserter
- Includes:
- Utils::StrongMemoize
- Defined in:
- lib/gitlab/metrics/dashboard/stages/alerts_inserter.rb
Constant Summary
Constants included from Defaults
Instance Attribute Summary
Attributes inherited from BaseStage
Instance Method Summary collapse
Methods included from Utils::StrongMemoize
#clear_memoization, #strong_memoize, #strong_memoized?
Methods inherited from BaseStage
Constructor Details
This class inherits a constructor from Gitlab::Metrics::Dashboard::Stages::BaseStage
Instance Method Details
#transform! ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/gitlab/metrics/dashboard/stages/alerts_inserter.rb', line 12 def transform! return if metrics_with_alerts.empty? for_metrics do |metric| next unless metrics_with_alerts.include?(metric[:metric_id]) metric[:alert_path] = alert_path(metric[:metric_id], project, params[:environment]) end end |