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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-18 06:10:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-18 06:10:00 +0300
commitc00972b9d1f104c7134dd08c1a51cdd40b2a3dcf (patch)
tree34ce9f1cc9c7d666a718df4a5cd0150293b9336a /app/models/prometheus_alert.rb
parentd8b613250b5dcbf371d81a99bdebf559bb89abb6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/prometheus_alert.rb')
-rw-r--r--app/models/prometheus_alert.rb2
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!