Class: NewRelic::Security::Agent::Control::ExitEvent
- Inherits:
-
Object
- Object
- NewRelic::Security::Agent::Control::ExitEvent
- Defined in:
- lib/newrelic_security/agent/control/exit_event.rb
Instance Attribute Summary collapse
-
#caseType ⇒ Object
Returns the value of attribute caseType.
-
#executionId ⇒ Object
Returns the value of attribute executionId.
-
#jsonName ⇒ Object
readonly
Returns the value of attribute jsonName.
-
#k2RequestIdentifier ⇒ Object
Returns the value of attribute k2RequestIdentifier.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize ⇒ ExitEvent
constructor
A new instance of ExitEvent.
- #to_json ⇒ Object
Constructor Details
#initialize ⇒ ExitEvent
Returns a new instance of ExitEvent.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/newrelic_security/agent/control/exit_event.rb', line 10 def initialize @collectorType = RUBY @language = Ruby @jsonName = :'exit-event' @collectorVersion = NewRelic::Security::VERSION @buildNumber = nil @applicationUUID = NewRelic::Security::Agent.config[:uuid] @appAccountId = NewRelic::Security::Agent.config[:account_id] @appEntityGuid = NewRelic::Security::Agent.config[:entity_guid] @groupName = NewRelic::Security::Agent.config[:mode] @jsonVersion = NewRelic::Security::Agent.config[:json_version] @policyVersion = nil @framework = NewRelic::Security::Agent.config[:framework] @executionId = nil @caseType = nil @k2RequestIdentifier = nil end |
Instance Attribute Details
#caseType ⇒ Object
Returns the value of attribute caseType.
7 8 9 |
# File 'lib/newrelic_security/agent/control/exit_event.rb', line 7 def caseType @caseType end |
#executionId ⇒ Object
Returns the value of attribute executionId.
7 8 9 |
# File 'lib/newrelic_security/agent/control/exit_event.rb', line 7 def executionId @executionId end |
#jsonName ⇒ Object (readonly)
Returns the value of attribute jsonName.
8 9 10 |
# File 'lib/newrelic_security/agent/control/exit_event.rb', line 8 def jsonName @jsonName end |
#k2RequestIdentifier ⇒ Object
Returns the value of attribute k2RequestIdentifier.
7 8 9 |
# File 'lib/newrelic_security/agent/control/exit_event.rb', line 7 def k2RequestIdentifier @k2RequestIdentifier end |
Instance Method Details
#as_json ⇒ Object
28 29 30 31 32 |
# File 'lib/newrelic_security/agent/control/exit_event.rb', line 28 def as_json instance_variables.map! do |ivar| [ivar[1..-1].to_sym, instance_variable_get(ivar)] end.to_h end |
#to_json ⇒ Object
34 35 36 |
# File 'lib/newrelic_security/agent/control/exit_event.rb', line 34 def to_json as_json.to_json end |