diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-10-23 14:52:08 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-07 15:15:45 +0100 |
commit | 1eef71637eea9fe2e3b190c3ddcba6b3d91f404b (patch) | |
tree | d2fdda376ed67dd19a4363b9bbca245f13da773a | |
parent | dcd8893e1106eac073f311b704f47ba05f0208ca (diff) | |
download | gitlab-ce-1eef71637eea9fe2e3b190c3ddcba6b3d91f404b.tar.gz |
-rw-r--r-- | lib/gitlab/prometheus/query.rb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/gitlab/prometheus/query.rb b/lib/gitlab/prometheus/query.rb index 912b18ae389..72a0d7090a1 100644 --- a/lib/gitlab/prometheus/query.rb +++ b/lib/gitlab/prometheus/query.rb @@ -2,19 +2,10 @@ module Gitlab module Prometheus class Query include ActiveModel::Model -### unit: req / sec - # series: - # - label: code - # when: - # - value: 2xx - # color: green - # - value: 4xx - # color: yellow - # - value: 5xx - # color: red + include ActiveRecord::Base + enum - attr_accessor :unit, :sereis - attr_accessor :title, :required_metrics, :weight, :y_label, :queries + attr_accessor :unit, :series_dsl, :label, :type validates :title, :required_metrics, :weight, :y_label, :queries, presence: true |