diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-18 06:10:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-18 06:10:00 +0300 |
commit | c00972b9d1f104c7134dd08c1a51cdd40b2a3dcf (patch) | |
tree | 34ce9f1cc9c7d666a718df4a5cd0150293b9336a /app/models/prometheus_alert.rb | |
parent | d8b613250b5dcbf371d81a99bdebf559bb89abb6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/prometheus_alert.rb')
-rw-r--r-- | app/models/prometheus_alert.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/prometheus_alert.rb b/app/models/prometheus_alert.rb index 80eef1705e7..f0441d4a3cb 100644 --- a/app/models/prometheus_alert.rb +++ b/app/models/prometheus_alert.rb @@ -22,7 +22,7 @@ class PrometheusAlert < ApplicationRecord after_save :clear_prometheus_adapter_cache! after_destroy :clear_prometheus_adapter_cache! - validates :environment, :project, :prometheus_metric, presence: true + validates :environment, :project, :prometheus_metric, :threshold, :operator, presence: true validates :runbook_url, length: { maximum: 255 }, allow_blank: true, addressable_url: { enforce_sanitization: true, ascii_only: true } validate :require_valid_environment_project! |