Class: Mdm::Event

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/mdm/event.rb

Overview

Records framework events to the database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_atDateTime

When this event was created.



# File 'app/models/mdm/event.rb', line 28


#criticalfalse, true

Indicates if the event is critical.



# File 'app/models/mdm/event.rb', line 33


#nameString

Name of the event, such as 'module_run'.



# File 'app/models/mdm/event.rb', line 39


#seenfalse, true

Whether a user has seen these events.



# File 'app/models/mdm/event.rb', line 44


#updated_atDateTime

The last time this event was updated.



# File 'app/models/mdm/event.rb', line 50


#usernameString

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 55


Instance Method Details

#hostMdm::Host?

Host on which this event occurred.



12
13
14
15
# File 'app/models/mdm/event.rb', line 12

belongs_to :host,
class_name: 'Mdm::Host',
optional: true,
inverse_of: :events