Class: Mdm::Event
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Mdm::Event
- Defined in:
- app/models/mdm/event.rb
Overview
Records framework events to the database.
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
When this event was created.
-
#critical ⇒ false, true
Indicates if the event is critical.
-
#name ⇒ String
Name of the event, such as 'module_run'.
-
#seen ⇒ false, true
Whether a user has seen these events.
-
#updated_at ⇒ DateTime
The last time this event was updated.
-
#username ⇒ String
Name of user that triggered the event.
Instance Method Summary collapse
-
#host ⇒ Mdm::Host?
Host on which this event occurred.
-
#info ⇒ Hash
#name-specific information about this event.
Instance Attribute Details
#created_at ⇒ DateTime
When this event was created.
|
# File 'app/models/mdm/event.rb', line 26
|
#critical ⇒ false, true
Indicates if the event is critical.
|
# File 'app/models/mdm/event.rb', line 31
|
#name ⇒ String
Name of the event, such as 'module_run'.
|
# File 'app/models/mdm/event.rb', line 37
|
#seen ⇒ false, true
Whether a user has seen these events.
|
# File 'app/models/mdm/event.rb', line 42
|
#updated_at ⇒ DateTime
The last time this event was updated.
|
# File 'app/models/mdm/event.rb', line 48
|
#username ⇒ String
Name of user that triggered the event. Not necessarily a User#username, as #username may be set to
the username of the user inferred from ENV
when using metasploit-framework.
|
# File 'app/models/mdm/event.rb', line 53
|
Instance Method Details
#host ⇒ Mdm::Host?
Host on which this event occurred.
12 13 14 |
# File 'app/models/mdm/event.rb', line 12 belongs_to :host, class_name: 'Mdm::Host', inverse_of: :events |
#info ⇒ Hash
#name-specific information about this event.
73 |
# File 'app/models/mdm/event.rb', line 73 serialize :info, MetasploitDataModels::Base64Serializer.new |