Class: Mdm::Note
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Mdm::Note
- Defined in:
- app/models/mdm/note.rb
Overview
Data gathered or derived from the #host or #service such as its fingerprint.
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
When the note was created.
-
#critical ⇒ Boolean
Whether this note is critical or not.
- #data ⇒ Hash
-
#host ⇒ Mdm::Host?
The host to which this note is attached.
-
#ntype ⇒ String
The type of note.
-
#seen ⇒ Boolean
Whether any user has seen this note.
-
#service ⇒ Mdm::Service?
The service to which this note is attached.
-
#updated_at ⇒ DateTime
The last time the note was updated.
-
#vuln ⇒ Mdm::Vuln?
The vuln to which this note is attached.
- #workspace ⇒ Mdm::Workspace
Instance Attribute Details
#created_at ⇒ DateTime
When the note was created.
|
# File 'app/models/mdm/note.rb', line 48
|
#critical ⇒ Boolean
Whether this note is critical or not.
|
# File 'app/models/mdm/note.rb', line 53
|
#host ⇒ Mdm::Host?
The host to which this note is attached.
13 14 15 16 |
# File 'app/models/mdm/note.rb', line 13 belongs_to :host, class_name: 'Mdm::Host', counter_cache: :note_count, inverse_of: :notes |
#ntype ⇒ String
The type of note. Usually a dot-separateed name like 'host.updated.
|
# File 'app/models/mdm/note.rb', line 63
|
#seen ⇒ Boolean
Whether any user has seen this note.
|
# File 'app/models/mdm/note.rb', line 68
|
#service ⇒ Mdm::Service?
The service to which this note is attached.
23 24 25 |
# File 'app/models/mdm/note.rb', line 23 belongs_to :service, class_name: 'Mdm::Service', inverse_of: :notes |
#updated_at ⇒ DateTime
The last time the note was updated.
|
# File 'app/models/mdm/note.rb', line 73
|
#vuln ⇒ Mdm::Vuln?
The vuln to which this note is attached.
32 33 34 |
# File 'app/models/mdm/note.rb', line 32 belongs_to :vuln, class_name: 'Mdm::Vuln', inverse_of: :notes |
#workspace ⇒ Mdm::Workspace
40 41 42 |
# File 'app/models/mdm/note.rb', line 40 belongs_to :workspace, class_name: 'Mdm::Workspace', inverse_of: :notes |