Sha256: 2f4cabeb3b9e9c512fd4f3e37ca78251eee9fd5df7ecee29bfb369f3036ad152

Contents?: true

Size: 1002 Bytes

Versions: 4

Compression:

Stored size: 1002 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
        BLOCKED_AT_PERIMETER  = :BLOCKED_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, BLOCKED_AT_PERIMETER, EXPLOITED, SUSPICIOUS, AGGREGATED]
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
contrast-agent-6.11.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.10.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.9.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.8.0 lib/contrast/agent/reporting/attack_result/response_type.rb