I think you didn't understand what I was saying. A little background, I am collecting data for high level capacity reporting so some of the information isn't so actionable but it is information that senior management likes to see. For example a VM to Host ratio at a host level may be important for troubleshootinn for techs but the CIO doesn't care about individual hosts and just wants to see the ratio for the whole environment. I'm trying to write code to satisfy both. Right now I just have a bunch of scripts and I am looking for a better way to organize so that I'm not just cutting and pasting from scripts every time I get a request for a new dataset. I thought making new properties was the way to go but maybe I need to make functions. Just looking for your thoughts on that.
Here are all the things I am collecting.
#VMs
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Hosts
Global
Per Virtaul Center
Per Data Center
Per Cluster
#Clusters
Global
Per Virtaul Center
Per Data Center
#Datacenters
Global
Per Virtaul Center
#Virtual Centers
Global
VM -Host Ratio
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Physical CPU
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Virtual CPU
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
Per VM
Virtual CPU to Physical CPU Ratio
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
VM to Physical CPU Ratio
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Physical Memory
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Memory Allocated
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Average VM (# cpu, Memory, Storage allocated, Storage in use)
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Storage Allocated (Calculated from vm data)
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
Per VM
#Storage in Use (Calculated from vm data)
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
Per VM
#Storage saved through thin provisioning (StorageAllocated - Storage in Use)
Global
Per Virtaul Center
Per Data Center
Per Cluster
Per Host
#Min, Max, Average CPU usage last 30 days
Per Cluster
Per Host
Per VM
#Min, Max, Average CPU usage last 30 days
Per Cluster
Per Host
Per VM