Class: Source::Newrelic

Inherits:
Source
  • Object
show all
Defined in:
lib/source/newrelic.rb

Overview

Parent Collector Source class Use this class directly when the source does not need any overrides

Instance Method Summary collapse

Instance Method Details

#titleize(str) ⇒ Object


4
5
6
7
8
# File 'lib/source/newrelic.rb', line 4

def titleize str
	metric, sub_type = str.split("-")
	metric =  metric.tr("_","/").tr(".",":")
	return [metric, sub_type.titleize].join(" - ")
end