public async Task <RamMetricResponse> Handle(RamMetricGetByPeriodFromAgentQuery request, CancellationToken cancellationToken)
            {
                var result = await Task.Run(() =>
                {
                    var metricsList = _repository.GetByPeriodFormAgent(request.AgentId, request.FromTime, request.ToTime);

                    var response = new RamMetricResponse();

                    response.Metrics.AddRange(_mapper.Map <List <RamMetricDto> >(metricsList));

                    return(response);
                });

                return(result);
            }