debian-mirror-gitlab/app/models/project_services/mock_monitoring_service.rb
2020-05-24 23:13:21 +05:30

23 lines
371 B
Ruby

# frozen_string_literal: true
class MockMonitoringService < MonitoringService
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
def can_test?
false
end
end