debian-mirror-gitlab/app/models/project_services/monitoring_service.rb

22 lines
427 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
2017-08-17 22:00:37 +05:30
# Base class for monitoring services
#
# These services integrate with a deployment solution like Prometheus
# to provide additional features for environments.
class MonitoringService < Service
default_value_for :category, 'monitoring'
def self.supported_events
%w()
end
2018-03-27 19:54:05 +05:30
def can_query?
2017-09-10 17:25:29 +05:30
raise NotImplementedError
end
2018-03-27 19:54:05 +05:30
def query(_, *_)
2017-08-17 22:00:37 +05:30
raise NotImplementedError
end
end