コード例 #1
0
ファイル: MetricEngine.cs プロジェクト: acsgn/UserAnalytics
        public MetricsResponseDTO GetSingleMetric(MetricRequest request)
        {
            var result = _MetricRepository.GetSingleMetric(request.CompanyName, request.Username, request.Endpoint, request.After, request.Before);

            return(new MetricsResponseDTO
            {
                Key = result.Key,
                NumberOfRequests = result.NumberOfRequests,
                MinResponseTime = result.MinResponseTime,
                AverageResponseTime = result.AverageResponseTime,
                MaxResponseTime = result.MaxResponseTime
            });
        }