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.
-
#derivatives ⇒ Object
readonly
Returns the value of attribute derivatives.
-
#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
-
#initialize(duration_ext_ns:) ⇒ Error
constructor
A new instance of Error.
- #match? ⇒ Boolean
- #timeout? ⇒ Boolean
Constructor Details
#initialize(duration_ext_ns:) ⇒ Error
Returns a new instance of Error.
49 50 51 52 53 54 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 49 def initialize(duration_ext_ns:) @events = [] @actions = @derivatives = {} @duration_ns = 0 @duration_ext_ns = duration_ext_ns end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
47 48 49 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 47 def actions @actions end |
#derivatives ⇒ Object (readonly)
Returns the value of attribute derivatives.
47 48 49 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 47 def derivatives @derivatives end |
#duration_ext_ns ⇒ Object (readonly)
Returns the value of attribute duration_ext_ns.
47 48 49 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 47 def duration_ext_ns @duration_ext_ns end |
#duration_ns ⇒ Object (readonly)
Returns the value of attribute duration_ns.
47 48 49 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 47 def duration_ns @duration_ns end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
47 48 49 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 47 def events @events end |
Instance Method Details
#match? ⇒ Boolean
60 61 62 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 60 def match? false end |
#timeout? ⇒ Boolean
56 57 58 |
# File 'lib/datadog/appsec/security_engine/result.rb', line 56 def timeout? false end |