Sha256: c1ef963c5c2320d39bb3276cd3efd28ea383ae5b32e91a6e2f782d192d56f0fa
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true module Mihari module Schemas Emitter = Dry::Schema.Params do required(:emitter).value(Types::EmitterTypes) end MISP = Dry::Schema.Params do required(:emitter).value(Types::String.enum("misp")) optional(:api_endpoint).value(:string) optional(:api_key).value(:string) end TheHive = Dry::Schema.Params do required(:emitter).value(Types::String.enum("the_hive")) optional(:api_endpoint).value(:string) optional(:api_key).value(:string) end Slack = Dry::Schema.Params do required(:emitter).value(Types::String.enum("slack")) optional(:webhook_url).value(:string) optional(:channel).value(:string) end HTTP = Dry::Schema.Params do required(:emitter).value(Types::String.enum("http")) required(:url).value(:string) optional(:http_request_method).value(Types::HTTPRequestMethods).default("POST") optional(:http_request_headers).value(:hash).default({}) optional(:template).value(:string) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mihari-4.5.3 | lib/mihari/schemas/emitter.rb |
mihari-4.5.2 | lib/mihari/schemas/emitter.rb |
mihari-4.5.1 | lib/mihari/schemas/emitter.rb |