summaryrefslogtreecommitdiff
path: root/app/models/project_services/monitoring_service.rb
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