private ClientMetricsData PopulateClientMetricsDataTableEntry(IClientPerformanceMetrics metricsData)
        {
            var metricsDataObject = new ClientMetricsData
            {
                PartitionKey          = deploymentId,
                RowKey                = clientId,
                DeploymentId          = deploymentId,
                ClientId              = clientId,
                Address               = address.ToString(),
                HostName              = myHostName,
                CPU                   = metricsData.CpuUsage,
                MemoryUsage           = metricsData.MemoryUsage,
                SendQueue             = metricsData.SendQueueLength,
                ReceiveQueue          = metricsData.ReceiveQueueLength,
                SentMessages          = metricsData.SentMessages,
                ReceivedMessages      = metricsData.ReceivedMessages,
                ConnectedGatewayCount = metricsData.ConnectedGatewayCount
            };

            return(metricsDataObject);
        }
 private ClientMetricsData PopulateClientMetricsDataTableEntry(IClientPerformanceMetrics metricsData)
 {
     var metricsDataObject = new ClientMetricsData
     {
         PartitionKey = deploymentId,
         RowKey = clientId,
         DeploymentId = deploymentId,
         ClientId = clientId,
         Address = address.ToString(),
         HostName = myHostName,
         CPU = metricsData.CpuUsage,
         MemoryUsage = metricsData.MemoryUsage,
         SendQueue = metricsData.SendQueueLength,
         ReceiveQueue = metricsData.ReceiveQueueLength,
         SentMessages = metricsData.SentMessages,
         ReceivedMessages = metricsData.ReceivedMessages,
         ConnectedGatewayCount = metricsData.ConnectedGatewayCount
     };
     return metricsDataObject;
 }