Class: Mihari::Services::AlertCreator
- Inherits:
-
Mihari::Service
- Object
- Mihari::Service
- Mihari::Services::AlertCreator
- Defined in:
- lib/mihari/services/creators.rb
Overview
Alert creator
Instance Method Summary collapse
Methods inherited from Mihari::Service
Instance Method Details
#call(params) ⇒ Mihari::Models::Alert
14 15 16 17 18 19 |
# File 'lib/mihari/services/creators.rb', line 14 def call(params) normalized = params.to_snake_keys proxy = Services::AlertProxy.new(**normalized) emitter = Emitters::Database.new(rule: proxy.rule) emitter.call proxy.artifacts end |