debian-mirror-gitlab/app/services/projects/prometheus/metrics/destroy_service.rb
2020-04-22 19:07:51 +05:30

14 lines
267 B
Ruby

# 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