Class: Nexpose::SyslogAlert

Inherits:
Object
  • Object
show all
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

Methods included from Alert

create, #delete, json_initializer, list_alerts, load, load_alerts, #save, #to_h, #to_json, #validate

Methods included from TypedAccessor

#typed_accessor

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.



224
225
226
227
228
229
230
# File 'lib/nexpose/alert.rb', line 224

def initialize(name, server, enabled = 1, max_alerts = -1)
  @alert_type = 'Syslog'
  @name       = name
  @enabled    = enabled
  @max_alerts = max_alerts
  @server     = server
end