lib/docker/metrics/container.rb
# Initialize a new Docker::Metrics::Container instance
# @param [String] name container name
# @return [Docker::Metrics::Container] container instance
Initialize a new Docker::Metrics::Container instance
Initialize a new Docker :: Metrics :: Container instance
def gather_data(require_details=false)
        data = {}
        data = gather_docker_info(require_details)
        if running?
           data = hash_deep_merge(data,gather_docker_metrics(@real_pid, require_details))
         else
           data = hash_deep_merge(data,empty_docker_metrics(require_details))
        end
        data["Timestamp"] = Time.now.to_s
        return data
      end
def gather_data ( require_details = false ) data = { } data = gather_docker_info ( require_details ) if running? data = hash_deep_merge ( data , gather_docker_metrics ( @real_pid , require_details ) ) else data = hash_deep_merge ( data , empty_docker_metrics ( require_details ) ) end data [ "Timestamp" ] = Time . now . to_s return data end
Initialize a new Docker::Metrics::Container instance
Initialize a new Docker :: Metrics :: Container instance
None
Docker::Metrics::Container
require_details
name container name
name container name