2018-08-10 02:45:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-04-05 07:04:34 -04:00
|
|
|
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
|
2017-05-30 08:53:01 -04:00
|
|
|
|
|
|
|
def can_test?
|
|
|
|
false
|
|
|
|
end
|
2017-04-05 07:04:34 -04:00
|
|
|
end
|