Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the PoolStatistics class.
 /// </summary>
 /// <param name="url">The URL for the statistics.</param>
 /// <param name="startTime">The start time of the time range covered
 /// by the statistics.</param>
 /// <param name="lastUpdateTime">The time at which the statistics were
 /// last updated. All statistics are limited to the range between
 /// startTime and lastUpdateTime.</param>
 /// <param name="usageStats">Statistics related to pool usage, such as
 /// the amount of core-time used.</param>
 /// <param name="resourceStats">Statistics related to resource
 /// consumption by compute nodes in the pool.</param>
 public PoolStatistics(string url, System.DateTime startTime, System.DateTime lastUpdateTime, UsageStatistics usageStats = default(UsageStatistics), ResourceStatistics resourceStats = default(ResourceStatistics))
 {
     Url            = url;
     StartTime      = startTime;
     LastUpdateTime = lastUpdateTime;
     UsageStats     = usageStats;
     ResourceStats  = resourceStats;
 }
Beispiel #2
0
 internal ResourceStatistics(Models.ResourceStatistics protocolObject)
 {
     this.AverageCpuPercentage = protocolObject.AvgCPUPercentage;
     this.AverageDiskGiB       = protocolObject.AvgDiskGiB;
     this.AverageMemoryGiB     = protocolObject.AvgMemoryGiB;
     this.DiskReadGiB          = protocolObject.DiskReadGiB;
     this.DiskReadIOps         = protocolObject.DiskReadIOps;
     this.DiskWriteGiB         = protocolObject.DiskWriteGiB;
     this.DiskWriteIOps        = protocolObject.DiskWriteIOps;
     this.LastUpdateTime       = protocolObject.LastUpdateTime;
     this.NetworkReadGiB       = protocolObject.NetworkReadGiB;
     this.NetworkWriteGiB      = protocolObject.NetworkWriteGiB;
     this.PeakDiskGiB          = protocolObject.PeakDiskGiB;
     this.PeakMemoryGiB        = protocolObject.PeakMemoryGiB;
     this.StartTime            = protocolObject.StartTime;
 }