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

monitoring_service.rb « project_services « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 597765525400957a170a0381a9f7274efb4b11a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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

  # Environments have a number of metrics
  def metrics(environment, timeframe_start: nil, timeframe_end: nil)
    raise NotImplementedError
  end
end