Class: RRDNotifier::AlarmMissingData
- Defined in:
- lib/rrd-grapher/notifier/alarms.rb
Instance Attribute Summary collapse
-
#allowed_interval ⇒ Object
Time allowed between updates.
-
#last_update ⇒ Object
When was this measure last updated ?.
Attributes inherited from Alarm
Instance Method Summary collapse
-
#initialize(p, allowed_interval, last_update) ⇒ AlarmMissingData
constructor
A new instance of AlarmMissingData.
- #is_same?(allowed_interval, last_update) ⇒ Boolean
- #reason ⇒ Object
Methods inherited from Alarm
Constructor Details
#initialize(p, allowed_interval, last_update) ⇒ AlarmMissingData
Returns a new instance of AlarmMissingData.
51 52 53 54 55 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 51 def initialize(p, allowed_interval ,last_update) super(p) @allowed_interval = allowed_interval @last_update = last_update end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RRDNotifier::Alarm
Instance Attribute Details
#allowed_interval ⇒ Object
Time allowed between updates.
45 46 47 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 45 def allowed_interval @allowed_interval end |
#last_update ⇒ Object
When was this measure last updated ?
49 50 51 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 49 def last_update @last_update end |
Instance Method Details
#is_same?(allowed_interval, last_update) ⇒ Boolean
57 58 59 60 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 57 def is_same?(allowed_interval ,last_update) (@allowed_interval == allowed_interval) && (@last_update == last_update) end |
#reason ⇒ Object
41 |
# File 'lib/rrd-grapher/notifier/alarms.rb', line 41 def reason; :missing_data; end |