summaryrefslogtreecommitdiff
path: root/app/models/environment.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-22 00:06:05 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-22 00:06:05 +0000
commit8dfb94309c3e84937189f73a4149d654e20332e9 (patch)
tree1543a7b74b2e5c683a39fd93b09afc578f758c2b /app/models/environment.rb
parent170f0bdcdef9c9b226abfe0a50d6687c65e8d613 (diff)
downloadgitlab-ce-8dfb94309c3e84937189f73a4149d654e20332e9.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r--app/models/environment.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb
index af0c219d9a0..b426941d8af 100644
--- a/app/models/environment.rb
+++ b/app/models/environment.rb
@@ -188,6 +188,10 @@ class Environment < ApplicationRecord
prometheus_adapter.query(:environment, self) if has_metrics?
end
+ def prometheus_status
+ deployment_platform&.cluster&.application_prometheus&.status_name
+ end
+
def additional_metrics(*args)
return unless has_metrics?