specificTimeRange is provided automatically, based on the timeRange selected on the user's dashboard settings.  If you test the function in WCF, you get a specificTimeRange = all time.  Quite annoying, really.  If you assign the result of the function to a column on a simple row-oriented table (or any view, for that matter), it inherits the dashboard timeRange automatically.
Was hoping one of the officiando's on this board could enlighten me on what I could possibly doing wrong.   I have created a WCF dashboard that shows a VMs CPU and Memory Avg and Max Utilization for the past 30 days. The vFogkight data in the dashboard, from my reviewing of the VM through vCenter, shows correctly and is provided below [IMAGE]  When I create a function that pulls the exact same metrics I for some reason am not getting the same information.  1. Average memory for the period appears to be correct memAverage = virtualMachine.get("memory/hostMemory/utilization/period/average") [IMAGE]  2. Max memory is not matching what is shown in the data chart above memMax = virtualMachine.get("memory/hostMemory/utilization/period/max") [IMAGE]  3. Average CPU is not matching what is shown in the data chart above cpuAverage = virtualMachine.get("cpus/hostCPUs/utilization/period/average") [IMAGE]  4. Max CPU for the period appears to be correct cpuMax = virtualMachine.get("cpus/hostCPUs/utilization/period/max") [IMAGE]  Any assistance with helping me understand where I went wrong is greatly appreciated.  Thanks,  Joshua
Retrieving Memory Utilization (WCF Function)