2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
class MockMonitoringService < MonitoringService
|
|
|
|
def title
|
|
|
|
'Mock monitoring'
|
|
|
|
end
|
|
|
|
|
|
|
|
def description
|
|
|
|
'Mock monitoring service'
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.to_param
|
|
|
|
'mock_monitoring'
|
|
|
|
end
|
|
|
|
|
|
|
|
def metrics(environment)
|
2020-05-24 23:13:21 +05:30
|
|
|
Gitlab::Json.parse(File.read(Rails.root + 'spec/fixtures/metrics.json'))
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
def can_test?
|
|
|
|
false
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|