debian-mirror-gitlab/spec/factories/prometheus_metrics.rb
2020-03-13 15:44:24 +05:30

18 lines
350 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :prometheus_metric, class: 'PrometheusMetric' do
title { 'title' }
query { 'avg(metric)' }
y_label { 'y_label' }
unit { 'm/s' }
group { :business }
project
legend { 'legend' }
trait :common do
common { true }
project { nil }
end
end
end