示例#1
0
        private void getQuerySummary(ManagedObjectReference perfMgr,
                                     ManagedObjectReference hostmor,
                                     VimService service)
        {
            PerfProviderSummary summary = service.QueryPerfProviderSummary(perfMgr, hostmor);

            Console.WriteLine("Host perf capabilities:");
            Console.WriteLine("----------------------");
            Console.WriteLine("  Summary supported: " + summary.summarySupported);
            Console.WriteLine("  Current supported: " + summary.currentSupported);
            if (summary.currentSupported)
            {
                Console.WriteLine("  Current refresh rate: " + summary.refreshRate);
            }
            Console.WriteLine();
        }
示例#2
0
 private void getQuerySummary(ManagedObjectReference perfMgr,
                              ManagedObjectReference hostmor,
                              VimService service)
 {
     PerfProviderSummary summary = service.QueryPerfProviderSummary(perfMgr, hostmor);
     Console.WriteLine("Host perf capabilities:");
     Console.WriteLine("----------------------");
     Console.WriteLine("  Summary supported: " + summary.summarySupported);
     Console.WriteLine("  Current supported: " + summary.currentSupported);
     if (summary.currentSupported)
     {
         Console.WriteLine("  Current refresh rate: " + summary.refreshRate);
     }
     Console.WriteLine();
 }