class Nexpose::ScanFilter

Scan filter for alerting. Set values to 1 to enable and 0 to disable.

Attributes

fail[RW]

Scan events to alert on.

pause[RW]

Scan events to alert on.

resume[RW]

Scan events to alert on.

start[RW]

Scan events to alert on.

stop[RW]

Scan events to alert on.

Public Class Methods

json_initializer(filter) click to toggle source
# File lib/nexpose/alert.rb, line 14
def self.json_initializer(filter)
  new(filter[:start] ? 1 : 0,
      filter[:stop] ? 1 : 0,
      filter[:failed] ? 1 : 0,
      filter[:resume] ? 1 : 0,
      filter[:pause] ? 1 : 0)
end
new(start = 0, stop = 0, fail = 0, resume = 0, pause = 0) click to toggle source
# File lib/nexpose/alert.rb, line 10
def initialize(start = 0, stop = 0, fail = 0, resume = 0, pause = 0)
  @start, @stop, @fail, @resume, @pause = start.to_i, stop.to_i, fail.to_i, resume.to_i, pause.to_i
end