Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_monitoring.rb « integrations « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b0bebb5a8597b335964ead4b525f50abf72f2f9a (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
    attribute :category, default: 'monitoring'

    def self.supported_events
      %w()
    end

    def can_query?
      raise NotImplementedError
    end

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