16 lines
271 B
Ruby
16 lines
271 B
Ruby
|
# 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
|