Top Level Namespace
Defined Under Namespace
Classes: Alert, Alert_Email, MonitorManager, MonitorType, MonitorTypeExceptionHandled, MonitorTypeMustHaveNameError, MonitorTypeMustHaveSenderEmailAddressForEmailAlertError, MonitorTypeParameterMissingError, MonitorType_Beanstalk, MonitorType_Dir, MonitorType_Drive, MonitorType_FluidDb, MonitorType_HttpGetJsonList, MonitorType_Process, MonitorType_Threshold
Constant Summary
collapse
- InvalidProcessNameError =
Class.new(StandardError)
Instance Method Summary
collapse
Instance Method Details
#beanstalk(params) ⇒ Object
42
43
44
|
# File 'lib/MonitorType/Beanstalk.rb', line 42
def beanstalk( params )
$a.add( MonitorType_Beanstalk.new( params ) )
end
|
#dir(params) ⇒ Object
43
44
45
|
# File 'lib/MonitorType/Dir.rb', line 43
def dir( params )
$a.add( MonitorType_Dir.new( params ) )
end
|
#fluiddb(params) ⇒ Object
71
72
73
|
# File 'lib/MonitorType/FluidDb.rb', line 71
def fluiddb( params )
$a.add( MonitorType_FluidDb.new( params ) )
end
|
#httpgetjsonlist(params) ⇒ Object
#log(string, verbose = false) ⇒ Object
1
2
3
4
5
6
7
8
9
|
# File 'lib/helper_functions.rb', line 1
def log( string, verbose=false )
return if ENV["TESTING"]=="true"
type = verbose ? "VERB" : "INFO"
if !ENV["VERBOSE"].nil? || verbose==false then
timestamp = Time.new.strftime( "%Y-%m-%d %H:%M:%S" )
puts "[#{type}] #{timestamp} :: #{string}"
end
end
|
#process(params) ⇒ Object
48
49
50
|
# File 'lib/MonitorType/Drive.rb', line 48
def process(params)
$a.add(MonitorType_Drive.new(params))
end
|