debian-mirror-gitlab/app/services/projects/prometheus/alerts/create_service.rb

16 lines
278 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
module Projects
module Prometheus
module Alerts
2022-01-26 12:08:38 +05:30
class CreateService < BaseProjectService
2020-04-22 19:07:51 +05:30
include AlertParams
def execute
project.prometheus_alerts.create(alert_params)
end
end
end
end
end