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

mock_monitoring.rb « integrations « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9e474078b28b5352669c789ed6368eb97b628b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Integrations
  class MockMonitoring < BaseMonitoring
    def self.title
      'Mock monitoring'
    end

    def self.description
      'Mock monitoring service'
    end

    def self.to_param
      'mock_monitoring'
    end

    def metrics(environment)
      Gitlab::Json.parse(File.read(Rails.root + 'spec/fixtures/metrics.json'))
    end

    def testable?
      false
    end
  end
end