diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /app/graphql/types/alert_management/prometheus_integration_type.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/graphql/types/alert_management/prometheus_integration_type.rb')
-rw-r--r-- | app/graphql/types/alert_management/prometheus_integration_type.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/graphql/types/alert_management/prometheus_integration_type.rb b/app/graphql/types/alert_management/prometheus_integration_type.rb index 79f265f2f1e..27e4832d8f6 100644 --- a/app/graphql/types/alert_management/prometheus_integration_type.rb +++ b/app/graphql/types/alert_management/prometheus_integration_type.rb @@ -12,10 +12,10 @@ module Types authorize :admin_project - alias_method :prometheus_service, :object + alias_method :prometheus_integration, :object def name - prometheus_service.title + prometheus_integration.title end def type @@ -23,15 +23,15 @@ module Types end def token - prometheus_service.project&.alerting_setting&.token + prometheus_integration.project&.alerting_setting&.token end def url - prometheus_service.project && notify_project_prometheus_alerts_url(prometheus_service.project, format: :json) + prometheus_integration.project && notify_project_prometheus_alerts_url(prometheus_integration.project, format: :json) end def active - prometheus_service.manual_configuration? + prometheus_integration.manual_configuration? end end end |