Class: Contrast::Agent::Reporting::Settings::ApplicationSettings
- Defined in:
- lib/contrast/agent/reporting/settings/application_settings.rb
Overview
All of the settings from TeamServer that apply at the application level. At least one, but not necessarily all, setting will differ from the agent’s current set. Agents are able to replace all application settings with those in this message.
Instance Method Summary collapse
-
#assess ⇒ Object
Application level settings for the Assess featureset.
-
#exclusions ⇒ Object
Array of all the exclusions.
-
#protect ⇒ Object
Application level settings for the Protect featureset.
-
#sensitive_data_masking ⇒ Object
This object will hold the masking rules send from TS.
-
#to_controlled_hash ⇒ Object
Currently protect and assess are not covered with to_controlled_hash methods.
Instance Method Details
#assess ⇒ Object
Application level settings for the Assess featureset
22 23 24 |
# File 'lib/contrast/agent/reporting/settings/application_settings.rb', line 22 def assess @_assess ||= Contrast::Agent::Reporting::Settings::Assess.new end |
#exclusions ⇒ Object
Array of all the exclusions
36 37 38 |
# File 'lib/contrast/agent/reporting/settings/application_settings.rb', line 36 def exclusions @_exclusions ||= Contrast::Agent::Reporting::Settings::Exclusions.new end |
#protect ⇒ Object
Application level settings for the Protect featureset
29 30 31 |
# File 'lib/contrast/agent/reporting/settings/application_settings.rb', line 29 def protect @_protect ||= Contrast::Agent::Reporting::Settings::Protect.new end |
#sensitive_data_masking ⇒ Object
This object will hold the masking rules send from TS.
includes mask_http_body flag and Array set of rules with keywords in them.
44 45 46 |
# File 'lib/contrast/agent/reporting/settings/application_settings.rb', line 44 def sensitive_data_masking @_sensitive_data_masking ||= Contrast::Agent::Reporting::Settings::SensitiveDataMasking.new end |
#to_controlled_hash ⇒ Object
Currently protect and assess are not covered with to_controlled_hash methods
49 50 51 52 53 54 55 56 |
# File 'lib/contrast/agent/reporting/settings/application_settings.rb', line 49 def to_controlled_hash { defend: {}, exceptions: exclusions.to_controlled_hash, assessment: {}, sensitive_data_masking_policy: sensitive_data_masking.to_controlled_hash } end |