Welcome to mirror list, hosted at ThFree Co, Russian Federation.

prometheus_metrics.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 503d392a52402b5c1dccdaa1fa66e44951943c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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