debian-mirror-gitlab/app/services/projects/prometheus/alerts/create_service.rb
2022-01-26 12:08:38 +05:30

15 lines
278 B
Ruby

# frozen_string_literal: true
module Projects
module Prometheus
module Alerts
class CreateService < BaseProjectService
include AlertParams
def execute
project.prometheus_alerts.create(alert_params)
end
end
end
end
end