Sha256: b83d5e38e9da8e9783b0231a68f5f9edf83b4a3560c4793e4c8987d104590426

Contents?: true

Size: 860 Bytes

Versions: 10

Compression:

Stored size: 860 Bytes

Contents

# frozen_string_literal: true

require "singleton"

module GitlabQuality
  module TestTooling
    module TestMetricsExporter
      class Config
        include Singleton

        class << self
          def configuration
            Config.instance
          end

          def configure
            yield(configuration)
          end
        end

        attr_accessor :influxdb_url,
          :influxdb_token,
          :influxdb_bucket,
          :gcs_bucket,
          :gcs_project_id,
          :gcs_credentials,
          :gcs_metrics_file_name,
          :test_metric_file_name,
          :run_type

        attr_writer :custom_keys_tags,
          :custom_keys_fields

        def custom_keys_tags
          @custom_keys_tags || []
        end

        def custom_keys_fields
          @custom_keys_fields || []
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gitlab_quality-test_tooling-2.5.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-2.4.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-2.3.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-2.2.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-2.1.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-2.0.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-1.39.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-1.38.1 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-1.38.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb
gitlab_quality-test_tooling-1.37.0 lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb