Beispiel #1
0
        public MetricsResponseDTO[] GetEndpointMetrics(MetricRequest request)
        {
            var result = _MetricRepository.GetEndpointMetrics(request.CompanyName, request.Username, request.Size, request.Ascending, request.After, request.Before);

            return((from r in result
                    select new MetricsResponseDTO
            {
                Key = r.Key,
                NumberOfRequests = r.NumberOfRequests,
                MinResponseTime = r.MinResponseTime,
                AverageResponseTime = r.AverageResponseTime,
                MaxResponseTime = r.MaxResponseTime
            }).ToArray());
        }