gitlab-org--gitlab-foss/app/services/projects/prometheus/metrics/destroy_service.rb

15 lines
267 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Projects
module Prometheus
module Metrics
class DestroyService < Metrics::BaseService
def execute
schedule_alert_update if has_alert?
metric.destroy
end
end
end
end
end