Architecture of an end-to-end energy consumption model for a cloud data center