Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/prometheus/alerts_controller.rb')
-rw-r--r--app/controllers/projects/prometheus/alerts_controller.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/controllers/projects/prometheus/alerts_controller.rb b/app/controllers/projects/prometheus/alerts_controller.rb
index 27ac64e5758..80a8dbf4729 100644
--- a/app/controllers/projects/prometheus/alerts_controller.rb
+++ b/app/controllers/projects/prometheus/alerts_controller.rb
@@ -3,8 +3,6 @@
module Projects
module Prometheus
class AlertsController < Projects::ApplicationController
- include MetricsDashboard
-
respond_to :json
protect_from_forgery except: [:notify]
@@ -14,7 +12,6 @@ module Projects
prepend_before_action :repository, :project_without_auth, only: [:notify]
before_action :authorize_read_prometheus_alerts!, except: [:notify]
- before_action :alert, only: [:metrics_dashboard]
feature_category :incident_management
urgency :low
@@ -33,17 +30,6 @@ module Projects
.new(project, params.permit!)
end
- def alert
- @alert ||= alerts_finder(metric: params[:id]).execute.first || render_404
- end
-
- def alerts_finder(opts = {})
- Projects::Prometheus::AlertsFinder.new({
- project: project,
- environment: params[:environment_id]
- }.reverse_merge(opts))
- end
-
def extract_alert_manager_token(request)
Doorkeeper::OAuth::Token.from_bearer_authorization(request)
end
@@ -52,13 +38,6 @@ module Projects
@project ||= Project
.find_by_full_path("#{params[:namespace_id]}/#{params[:project_id]}")
end
-
- def metrics_dashboard_params
- {
- embedded: true,
- prometheus_alert_id: alert.id
- }
- end
end
end
end