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

prometheus_api_controller.rb « environments « projects « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f0bb5360f8430a0db69304f6d41ebee3f719b358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class Projects::Environments::PrometheusApiController < Projects::ApplicationController
  include Metrics::Dashboard::PrometheusApiProxy

  before_action :proxyable

  private

  def proxyable
    @proxyable ||= project.environments.find(params[:id])
  end

  def proxy_variable_substitution_service
    Prometheus::ProxyVariableSubstitutionService
  end
end