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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
412 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
FactoryBot.define do
2020-03-13 15:44:24 +05:30
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' }
2021-01-03 14:25:43 +05:30
dashboard_path { '.gitlab/dashboards/dashboard_path.yml'}
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