Class: Sensu::Plugin::Metric::CLI::Graphite

Inherits:
CLI
  • Object
show all
Defined in:
lib/sensu-plugin/metric/cli.rb

Instance Attribute Summary

Attributes inherited from CLI

#argv

Instance Method Summary collapse

Methods inherited from CLI

method_added, #run

Instance Method Details

#output(path = nil, value = nil, timestamp = Time.now.to_i) ⇒ Object



19
20
21
22
23
# File 'lib/sensu-plugin/metric/cli.rb', line 19

def output(path=nil, value=nil, timestamp=Time.now.to_i)
  unless path.nil? || path.is_a?(Exception) || value.nil?
    puts [path, value, timestamp].join("\t")
  end
end