Class: FnordMetric::ZeroConfigGauge::EmtpyGauge
- Inherits:
-
Object
- Object
- FnordMetric::ZeroConfigGauge::EmtpyGauge
- Defined in:
- lib/fnordmetric/zero_config_gauge.rb
Class Method Summary collapse
Instance Method Summary collapse
- #average? ⇒ Boolean
- #group ⇒ Object
- #has_series? ⇒ Boolean
- #key(_append = nil) ⇒ Object
- #key_nouns ⇒ Object
- #progressive? ⇒ Boolean
- #retention_key(_time, _append = nil) ⇒ Object
- #three_dimensional? ⇒ Boolean
- #tick_key(_time, _append = nil) ⇒ Object
- #tick_keys(_range, _append = nil) ⇒ Object
- #two_dimensional? ⇒ Boolean
- #unique? ⇒ Boolean
- #unit ⇒ Object
Class Method Details
.retention ⇒ Object
53 54 55 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 53 def self.retention tick * 10 end |
.tick ⇒ Object
49 50 51 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 49 def self.tick FnordMetric.[:default_flush_interval] end |
.tick_at(time, _tick = tick) ⇒ Object
57 58 59 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 57 def self.tick_at(time, _tick=tick) (time/_tick.to_f).floor*_tick end |
Instance Method Details
#average? ⇒ Boolean
105 106 107 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 105 def average? false end |
#group ⇒ Object
61 62 63 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 61 def group "Gauges" end |
#has_series? ⇒ Boolean
109 110 111 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 109 def has_series? false end |
#key(_append = nil) ⇒ Object
73 74 75 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 73 def key(_append=nil) "----empty-gauge----" end |
#key_nouns ⇒ Object
69 70 71 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 69 def key_nouns ["Key", "Keys"] end |
#progressive? ⇒ Boolean
97 98 99 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 97 def progressive? false end |
#retention_key(_time, _append = nil) ⇒ Object
85 86 87 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 85 def retention_key(_time, _append=nil) "----empty-gauge----" end |
#three_dimensional? ⇒ Boolean
93 94 95 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 93 def three_dimensional? false end |
#tick_key(_time, _append = nil) ⇒ Object
77 78 79 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 77 def tick_key(_time, _append=nil) "----empty-gauge----" end |
#tick_keys(_range, _append = nil) ⇒ Object
81 82 83 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 81 def tick_keys(_range, _append=nil) ["----empty-gauge----"] end |
#two_dimensional? ⇒ Boolean
89 90 91 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 89 def two_dimensional? true end |
#unique? ⇒ Boolean
101 102 103 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 101 def unique? false end |
#unit ⇒ Object
65 66 67 |
# File 'lib/fnordmetric/zero_config_gauge.rb', line 65 def unit nil end |