Class: Datadog::AppSec::SecurityEngine::Result::Base
- Inherits:
-
Object
- Object
- Datadog::AppSec::SecurityEngine::Result::Base
- Defined in:
- lib/datadog/appsec/security_engine/result.rb
Overview
A generic result without indication of its type.
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(events:, actions:, attributes:, duration_ns:, duration_ext_ns:, timeout:, keep:, input_truncated:) ⇒ Base
constructor
A new instance of Base.
- #input_truncated? ⇒ Boolean
- #keep? ⇒ Boolean
- #match? ⇒ Boolean
- #timeout? ⇒ Boolean
Constructor Details
#initialize(events:, actions:, attributes:, duration_ns:, duration_ext_ns:, timeout:, keep:, input_truncated:) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 12 def initialize(events:, actions:, attributes:, duration_ns:, duration_ext_ns:, timeout:, keep:, input_truncated:) @events = events @actions = actions @attributes = attributes @duration_ns = duration_ns @duration_ext_ns = duration_ext_ns @keep = !!keep @timeout = !!timeout @input_truncated = !!input_truncated end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def actions @actions end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def attributes @attributes end |
#duration_ext_ns ⇒ Object (readonly)
Returns the value of attribute duration_ext_ns.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def duration_ext_ns @duration_ext_ns end |
#duration_ns ⇒ Object (readonly)
Returns the value of attribute duration_ns.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def duration_ns @duration_ns end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
10 11 12 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 10 def events @events end |
Instance Method Details
#error? ⇒ Boolean
40 41 42 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 40 def error? raise NotImplementedError end |
#input_truncated? ⇒ Boolean
32 33 34 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 32 def input_truncated? @input_truncated end |
#keep? ⇒ Boolean
28 29 30 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 28 def keep? @keep end |
#match? ⇒ Boolean
36 37 38 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 36 def match? raise NotImplementedError end |
#timeout? ⇒ Boolean
24 25 26 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 24 def timeout? @timeout end |