Class: Monitors::ViolationsRecorders::Processes
- Inherits:
-
Base
- Object
- Base
- Monitors::ViolationsRecorders::Processes
show all
- Defined in:
- lib/monitors/violations_recorders/processes.rb
Class Method Summary
collapse
Methods inherited from Base
inherited, is_violating?, reset
Methods included from Logging
#log, #logger
Class Method Details
.process_attr ⇒ Object
11
12
13
|
# File 'lib/monitors/violations_recorders/processes.rb', line 11
def process_attr
:port
end
|
.process_is_violating?(process) ⇒ Boolean
15
16
17
|
# File 'lib/monitors/violations_recorders/processes.rb', line 15
def process_is_violating?(process)
Phantom::Collector.missing_ports.include?(process.port)
end
|
.retries_limit ⇒ Object
7
8
9
|
# File 'lib/monitors/violations_recorders/processes.rb', line 7
def retries_limit
Cfg.processes_check_retries
end
|