Ejemplo n.º 1
0
        public Dictionary <string, BulkMetricsResponse> BulkMetrics(string[] handles)
        {
            var response = new Dictionary <string, BulkMetricsResponse>();

            foreach (var handle in handles)
            {
                try
                {
                    var metrics = containerInfoService.GetMetricsByHandle(handle);
                    if (metrics != null)
                    {
                        response[handle] = new BulkMetricsResponse
                        {
                            Metrics = metrics,
                        };
                    }
                }
                catch (Exception e)
                {
                    var ex = new Exception("failed", e);
                    ex.Data.Add("handle", handle);
                    throw ex;
                }
            }
            return(response);
        }
 public Dictionary<string, BulkMetricsResponse> BulkMetrics(string[] handles)
 {
     var response = new Dictionary<string, BulkMetricsResponse>();
     foreach (var handle in handles) {
         var metrics = containerInfoService.GetMetricsByHandle(handle);
         if (metrics != null)
         {
             response[handle] = new BulkMetricsResponse
             {
                 Metrics = metrics,
             };
         }
     }
     return response;
 }
Ejemplo n.º 3
0
        public Dictionary <string, BulkMetricsResponse> BulkMetrics(string[] handles)
        {
            var response = new Dictionary <string, BulkMetricsResponse>();

            foreach (var handle in handles)
            {
                var metrics = containerInfoService.GetMetricsByHandle(handle);
                if (metrics != null)
                {
                    response[handle] = new BulkMetricsResponse
                    {
                        Metrics = metrics,
                    };
                }
            }
            return(response);
        }
 public Dictionary<string, BulkMetricsResponse> BulkMetrics(string[] handles)
 {
     var response = new Dictionary<string, BulkMetricsResponse>();
     foreach (var handle in handles) {
         try
         {
             var metrics = containerInfoService.GetMetricsByHandle(handle);
             if (metrics != null)
             {
                 response[handle] = new BulkMetricsResponse
                 {
                     Metrics = metrics,
                 };
             }
         }
         catch (Exception e)
         {
             var ex = new Exception("failed", e);
             ex.Data.Add("handle", handle);
             throw ex;
         }
     }
     return response;
 }