summaryrefslogtreecommitdiff
path: root/spec/factories/prometheus_metrics.rb
blob: f6b58cf84c3479cebfd5eeac0f5687e7e3282a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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' }

    trait :common do
      common { true }
      project { nil }
    end
  end
end