Class: AlertManagement::ProcessPrometheusAlertService

Inherits:
BaseService
  • Object
show all
Includes:
Gitlab::Utils::StrongMemoize, IncidentManagement::Settings
Defined in:
app/services/alert_management/process_prometheus_alert_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from IncidentManagement::Settings

#auto_close_incident?, #incident_management_setting, #process_issues?

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from BaseService

Instance Method Details

#executeObject


8
9
10
11
12
13
14
# File 'app/services/alert_management/process_prometheus_alert_service.rb', line 8

def execute
  return bad_request unless incoming_payload.has_required_attributes?

  process_alert_management_alert

  ServiceResponse.success
end