debian-mirror-gitlab/lib/gitlab/prometheus/metric_group.rb
2017-09-10 17:25:29 +05:30

14 lines
298 B
Ruby

module Gitlab
module Prometheus
class MetricGroup
include ActiveModel::Model
attr_accessor :name, :priority, :metrics
validates :name, :priority, :metrics, presence: true
def self.all
AdditionalMetricsParser.load_groups_from_yaml
end
end
end
end