debian-mirror-gitlab/spec/factories/prometheus_metrics.rb

19 lines
348 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :prometheus_metric, class: PrometheusMetric do
2019-12-21 20:55:43 +05:30
title { 'title' }
query { 'avg(metric)' }
y_label { 'y_label' }
unit { 'm/s' }
group { :business }
2018-11-20 20:47:30 +05:30
project
2019-12-21 20:55:43 +05:30
legend { 'legend' }
2018-11-20 20:47:30 +05:30
trait :common do
2019-12-21 20:55:43 +05:30
common { true }
project { nil }
2018-11-20 20:47:30 +05:30
end
end
end