2021-09-30 23:02:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Base class for monitoring services
|
|
|
|
#
|
|
|
|
# These services integrate with a deployment solution like Prometheus
|
|
|
|
# to provide additional features for environments.
|
|
|
|
module Integrations
|
|
|
|
class BaseMonitoring < Integration
|
2023-01-13 00:05:48 +05:30
|
|
|
attribute :category, default: 'monitoring'
|
2021-09-30 23:02:18 +05:30
|
|
|
|
|
|
|
def self.supported_events
|
|
|
|
%w()
|
|
|
|
end
|
|
|
|
|
|
|
|
def can_query?
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def query(_, *_)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|