Class: RRDNotifier::AlarmClockDrift
- Defined in:
- lib/rrd-grapher/notifier/alarms.rb
Instance Attribute Summary collapse
-
#allowed_drift ⇒ Object
difference in seconds between our clock and the one of the host.
Attributes inherited from Alarm
Instance Method Summary collapse
-
#initialize(p, allowed_drift) ⇒ AlarmClockDrift
constructor
A new instance of AlarmClockDrift.
- #is_same?(drift) ⇒ Boolean
- #reason ⇒ Object
Methods inherited from Alarm
Constructor Details
#initialize(p, allowed_drift) ⇒ AlarmClockDrift
Returns a new instance of AlarmClockDrift.
70 71 72 73 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 70 def initialize(p, allowed_drift) super(p) @allowed_drift = allowed_drift end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RRDNotifier::Alarm
Instance Attribute Details
#allowed_drift ⇒ Object
difference in seconds between our clock and the one of the host
68 69 70 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 68 def allowed_drift @allowed_drift end |
Instance Method Details
#is_same?(drift) ⇒ Boolean
75 76 77 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 75 def is_same?(drift) @allowed_drift == drift end |
#reason ⇒ Object
64 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 64 def reason; :clock_drift; end |