Sha256: 89064d88d23b8f784a3fdf536594bae46cde72d3ecf19301c843f1ec0855b7d0

Contents?: true

Size: 982 Bytes

Versions: 16

Compression:

Stored size: 982 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/utils/object_share'

module Contrast
  module Agent
    module Reporting
      # This module will hold the response types used to generate
      # attack result.
      module ResponseType
        BLOCKED             = :BLOCKED.cs__freeze
        MONITORED           = :MONITORED.cs__freeze
        PROBED              = :PROBED.cs__freeze
        BLOCK_AT_PERIMETER  = :BLOCK_AT_PERIMETER.cs__freeze
        SUSPICIOUS          = :SUSPICIOUS.cs__freeze
        AGGREGATED          = :AGGREGATED.cs__freeze
        EXPLOITED           = :EXPLOITED.cs__freeze
        NO_ACTION           = :NO_ACTION.cs__freeze

        class << self
          def to_a
            [NO_ACTION, BLOCKED, MONITORED, PROBED, BLOCK_AT_PERIMETER, EXPLOITED, SUSPICIOUS, AGGREGATED]
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
contrast-agent-6.7.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.6.5 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.6.4 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.6.3 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.6.2 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.6.1 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.6.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.5.1 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.5.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.4.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.3.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.2.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.1.2 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.1.1 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.1.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.0.0 lib/contrast/agent/reporting/attack_result/response_type.rb