Class: Nexpose::SyslogAlert
- Inherits:
-
Object
- Object
- Nexpose::SyslogAlert
- Includes:
- Alert
- Defined in:
- lib/nexpose/alert.rb
Overview
Syslog Alert
Instance Attribute Summary
Attributes included from Alert
#alert_type, #enabled, #id, #max_alerts, #name, #server, #server_port
Instance Method Summary collapse
-
#initialize(name, server, enabled = 1, max_alerts = -1)) ⇒ SyslogAlert
constructor
A new instance of SyslogAlert.
Methods included from Alert
#delete, json_initializer, list_alerts, load, load_alerts, #save, #to_h, #to_json, #validate
Methods included from TypedAccessor
Methods included from JsonSerializer
#deserialize, #serialize, #to_hash
Constructor Details
#initialize(name, server, enabled = 1, max_alerts = -1)) ⇒ SyslogAlert
Returns a new instance of SyslogAlert.
226 227 228 229 230 231 232 |
# File 'lib/nexpose/alert.rb', line 226 def initialize(name, server, enabled = 1, max_alerts = -1) @alert_type = 'Syslog' @name = name @enabled = enabled @max_alerts = max_alerts @server = server end |