2018-09-04 09:42:58 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-08-31 16:53:50 +00:00
|
|
|
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
|