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: ed0318c6b27483a8c908d7cd465bc3f52afeeabc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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

  def can_test?
    false
  end
end