Class: Projects::Prometheus::Metrics::DestroyService

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/projects/prometheus/metrics/destroy_service.rb

Instance Method Summary collapse

Methods inherited from BaseService

#initialize

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

This class inherits a constructor from Projects::Prometheus::Metrics::BaseService

Instance Method Details

#executeObject


7
8
9
10
# File 'app/services/projects/prometheus/metrics/destroy_service.rb', line 7

def execute
  schedule_alert_update if has_alert?
  metric.destroy
end