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

destroy_service.rb « metrics « prometheus « projects « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6a46eb5516ca7bfe1f16be6efd779090ffa79a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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