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

create_service.rb « alerts « prometheus « projects « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc0cacf49f3f7b9ecaa8018520bedb20a4872c6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Projects
  module Prometheus
    module Alerts
      class CreateService < BaseService
        include AlertParams

        def execute
          project.prometheus_alerts.create(alert_params)
        end
      end
    end
  end
end