Method: NewRelic::Agent::Configuration::Manager#break_label_string_into_pairs
- Defined in:
- lib/new_relic/agent/configuration/manager.rb
permalink #break_label_string_into_pairs(labels) ⇒ Object
303 304 305 306 307 308 |
# File 'lib/new_relic/agent/configuration/manager.rb', line 303 def break_label_string_into_pairs(labels) stripped_labels = labels.strip.sub(/^;*/, '').sub(/;*$/, '') stripped_labels.split(';').map do |pair| pair.split(':').map(&:strip) end end |