# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/agent/telemetry/input_analysis_event' module Contrast module Agent module Telemetry # Event to report all gather information from the Input Analysis Cache statistics, hits and misses. class InputAnalysisEncodingEvent < Contrast::Agent::Telemetry::InputAnalysisEvent NAME = 'InputAnalysis encoding event' PATH = '/protect_input_analysis_encoding' private # Creates the tags for the event # # @param _rule_id [String] # @param encode_rates [Contrast::Agent::Protect::Rule::InputClassification::EncodingRates] def add_tags _rule_id, encode_rates super(nil, encode_rates) end end end end end