module COMOClient::Metrics
Public Class Methods
register()
click to toggle source
# File lib/como_client/metrics.rb, line 3 def self.register COMOClient.logger.debug("register metrics...") #Register Cloud Froundry metrics if the app is pushed to Cloud Foundry COMOClient::Metrics::CF.register if !ENV["CF_INSTANCE_GUID"].nil? COMOClient.logger.debug("registered metrics") end
update()
click to toggle source
# File lib/como_client/metrics.rb, line 12 def self.update COMOClient.logger.debug("update metrics...") #Update Cloud Froundry metrics if the app is pushed to Cloud Foundry COMOClient::Metrics::CF.update if !ENV["CF_INSTANCE_GUID"].nil? COMOClient.logger.debug("updated metrics") end