code: func dockerStatsToContainerStats(dockerStats *types.StatsJSON) (*ContainerStats, error) {
  	if numCores == uint64(0) {
  		seelog.Error("Invalid number of cpu cores acquired from the system")
  		return nil, fmt.Errorf("invalid number of cpu cores acquired from the system")
  	}
  
  	cpuUsage := (dockerStats.CPUStats.CPUUsage.TotalUsage * 100) / numCores
  	memoryUsage := dockerStats.MemoryStats.PrivateWorkingSet
  	return &ContainerStats{
  		cpuUsage:    cpuUsage,
  		memoryUsage: memoryUsage,
  		timestamp:   dockerStats.Read,
  	}, nil
  }
docs: // dockerStatsToContainerStats returns a new object of the ContainerStats object from docker stats.