gitlab-org--gitlab-foss/spec/factories/prometheus_metrics.rb

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

20 lines
413 B
Ruby
Raw Normal View History

2018-09-04 05:42:58 -04:00
# 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' }
dashboard_path { '.gitlab/dashboards/dashboard_path.yml' }
trait :common do
common { true }
project { nil }
end
end
end