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

20 lines
436 B
Ruby
Raw Normal View History

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
2017-09-10 17:25:29 +05:30
def environment_metrics(environment)
raise NotImplementedError
end
def deployment_metrics(deployment)
2017-08-17 22:00:37 +05:30
raise NotImplementedError
end
end