2018-09-04 05:42:58 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-08-31 12:53:50 -04:00
|
|
|
FactoryBot.define do
|
2020-01-09 13:07:52 -05:00
|
|
|
factory :prometheus_metric, class: 'PrometheusMetric' do
|
2019-10-01 20:06:26 -04:00
|
|
|
title { 'title' }
|
|
|
|
query { 'avg(metric)' }
|
|
|
|
y_label { 'y_label' }
|
|
|
|
unit { 'm/s' }
|
|
|
|
group { :business }
|
2018-08-31 12:53:50 -04:00
|
|
|
project
|
2019-10-01 20:06:26 -04:00
|
|
|
legend { 'legend' }
|
2018-08-31 12:53:50 -04:00
|
|
|
|
|
|
|
trait :common do
|
2019-10-01 20:06:26 -04:00
|
|
|
common { true }
|
|
|
|
project { nil }
|
2018-08-31 12:53:50 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|