Sha256: 89f58393633d9d47adf68137a99a77ae75d4e9a5dee1c428cb810c1faf95e2e9

Contents?: true

Size: 388 Bytes

Versions: 6

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Services
    #
    # Alert runner
    #
    class AlertRunner < Service
      #
      # @param [Mihari::Services::AlertProxy] alert
      #
      # @return [Mihari::Models::Alert]
      #
      def call(alert)
        emitter = Emitters::Database.new(rule: alert.rule)
        emitter.call alert.artifacts
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mihari-6.3.0 lib/mihari/services/alert_runner.rb
mihari-6.2.0 lib/mihari/services/alert_runner.rb
mihari-6.1.0 lib/mihari/services/alert_runner.rb
mihari-6.0.0 lib/mihari/services/alert_runner.rb
mihari-5.7.2 lib/mihari/services/alert_runner.rb
mihari-5.7.1 lib/mihari/services/alert_runner.rb