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

mock_monitoring_service.rb « project_services « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd04e04e19885a7bacb207e47857796c717985e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class MockMonitoringService < MonitoringService
  def title
    'Mock monitoring'
  end

  def description
    'Mock monitoring service'
  end

  def self.to_param
    'mock_monitoring'
  end

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