summaryrefslogtreecommitdiff
path: root/app/models/integrations/base_monitoring.rb
blob: 280eeda7c6c634d134357b7a4fe2edd9808e9193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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
    default_value_for :category, 'monitoring'

    def self.supported_events
      %w()
    end

    def can_query?
      raise NotImplementedError
    end

    def query(_, *_)
      raise NotImplementedError
    end
  end
end