class Nexpose::SNMPAlert

SNMP Alert

Attributes

community[RW]

Public Class Methods

new(name, community, server, enabled = 1, max_alerts = -1) click to toggle source
# File lib/nexpose/alert.rb, line 209
def initialize(name, community, server, enabled = 1, max_alerts = -1)
  raise 'SNMP alerts must have a community defined.' if community.nil?
  @alert_type = 'SNMP'
  @name       = name
  @enabled    = enabled
  @max_alerts = max_alerts
  @community  = community
  @server     = server
end