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: 72bb292edaa26edc7622917c2cca9737bb046c02 (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 title
      'Mock monitoring'
    end

    def 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