What is considered a shot in hockey?

When you shoot the hockey puck and it either hits the goalie or gos in the net