Class: FnordMetric::ZeroConfigGauge::EmtpyGauge

Inherits:
Object
  • Object
show all
Defined in:
lib/fnordmetric/zero_config_gauge.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.retentionObject



53
54
55
# File 'lib/fnordmetric/zero_config_gauge.rb', line 53

def self.retention
  tick * 10
end

.tickObject



49
50
51
# File 'lib/fnordmetric/zero_config_gauge.rb', line 49

def self.tick
  FnordMetric.options[: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

Returns:

  • (Boolean)


105
106
107
# File 'lib/fnordmetric/zero_config_gauge.rb', line 105

def average?
  false
end

#groupObject



61
62
63
# File 'lib/fnordmetric/zero_config_gauge.rb', line 61

def group
  "Gauges"
end

#has_series?Boolean

Returns:

  • (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_nounsObject



69
70
71
# File 'lib/fnordmetric/zero_config_gauge.rb', line 69

def key_nouns
  ["Key", "Keys"]
end

#progressive?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


89
90
91
# File 'lib/fnordmetric/zero_config_gauge.rb', line 89

def two_dimensional?
  true
end

#unique?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/fnordmetric/zero_config_gauge.rb', line 101

def unique?
  false
end

#unitObject



65
66
67
# File 'lib/fnordmetric/zero_config_gauge.rb', line 65

def unit
  nil
end