Class: Datadog::AppSec::SecurityEngine::Result::Error
- Inherits:
-
Object
- Object
- Datadog::AppSec::SecurityEngine::Result::Error
- Defined in:
- lib/datadog/appsec/security_engine/result.rb
Overview
A result that indicates an internal security library error
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#duration_ext_ns ⇒ Object
readonly
Returns the value of attribute duration_ext_ns.
-
#duration_ns ⇒ Object
readonly
Returns the value of attribute duration_ns.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(duration_ext_ns:, input_truncated:) ⇒ Error
constructor
A new instance of Error.
- #input_truncated? ⇒ Boolean
- #keep? ⇒ Boolean
- #match? ⇒ Boolean
- #timeout? ⇒ Boolean
Constructor Details
#initialize(duration_ext_ns:, input_truncated:) ⇒ Error
Returns a new instance of Error.
71 72 73 74 75 76 77 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 71 def initialize(duration_ext_ns:, input_truncated:) @events = [] @actions = @attributes = {} @duration_ns = 0 @duration_ext_ns = duration_ext_ns @input_truncated = !!input_truncated end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
69 70 71 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 69 def actions @actions end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
69 70 71 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 69 def attributes @attributes end |
#duration_ext_ns ⇒ Object (readonly)
Returns the value of attribute duration_ext_ns.
69 70 71 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 69 def duration_ext_ns @duration_ext_ns end |
#duration_ns ⇒ Object (readonly)
Returns the value of attribute duration_ns.
69 70 71 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 69 def duration_ns @duration_ns end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
69 70 71 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 69 def events @events end |
Instance Method Details
#error? ⇒ Boolean
95 96 97 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 95 def error? true end |
#input_truncated? ⇒ Boolean
87 88 89 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 87 def input_truncated? @input_truncated end |
#keep? ⇒ Boolean
79 80 81 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 79 def keep? false end |
#match? ⇒ Boolean
91 92 93 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 91 def match? false end |
#timeout? ⇒ Boolean
83 84 85 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 83 def timeout? false end |