Class: NewRelic::Agent::Utilization::PCF
- Defined in:
- lib/new_relic/agent/utilization/pcf.rb
Constant Summary
Constants inherited from Vendor
Instance Attribute Summary
Attributes inherited from Vendor
Instance Method Summary collapse
Methods inherited from Vendor
endpoint, headers, #initialize, key_transforms, keys, processed_headers, vendor_name
Constructor Details
This class inherits a constructor from NewRelic::Agent::Utilization::Vendor
Instance Method Details
#detect ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/new_relic/agent/utilization/pcf.rb', line 15 def detect begin return false unless pcf_keys_present? process_response(ENV) rescue NewRelic::Agent.logger.error("Error occurred detecting: #{vendor_name}", e) record_supportability_metric false end end |
#pcf_keys_present? ⇒ Boolean
27 28 29 |
# File 'lib/new_relic/agent/utilization/pcf.rb', line 27 def pcf_keys_present? !(ENV.keys & keys).empty? end |