2021-06-18 11:10:16 -04:00
|
|
|
# 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
|
|
|
|
|
2021-07-08 14:09:32 -04:00
|
|
|
def testable?
|
2021-06-18 11:10:16 -04:00
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|