Module: Projects::Prometheus::Alerts::AlertParams
- Included in:
- CreateService, UpdateService
- Defined in:
- app/services/projects/prometheus/alerts/alert_params.rb
Instance Method Summary collapse
Instance Method Details
#alert_params ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/services/projects/prometheus/alerts/alert_params.rb', line 7 def alert_params return params if params[:operator].blank? params.merge( operator: PrometheusAlert.operator_to_enum(params[:operator]) ) end |