Sha256: 00cc86267fbf3a3b97c090c2c491584531c15c77d62ac866904542fcaf4cd616

Contents?: true

Size: 1002 Bytes

Versions: 18

Compression:

Stored size: 1002 Bytes

Contents

# Copyright (c) 2023 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

18 entries across 18 versions & 1 rubygems

Version Path
contrast-agent-7.6.1 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.6.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.5.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.4.1 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.4.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.3.2 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.3.1 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.3.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.2.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.1.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-7.0.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.15.3 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.15.2 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.15.1 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.15.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.14.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.13.0 lib/contrast/agent/reporting/attack_result/response_type.rb
contrast-agent-6.12.0 lib/contrast/agent/reporting/attack_result/response_type.rb