public IActionResult GetMetricsFromAgent([FromRoute] int agentId, [FromRoute] DateTimeOffset fromTime, [FromRoute] DateTimeOffset toTime) { var response = _repository.GetByAgentByPeriod(agentId, fromTime, toTime); _logger.LogInformation(string.Concat("GetMetricsFromAgent_HDD: ", " AgentId: ", agentId.ToString(), " fromTime: ", fromTime.ToString(), " toTime: ", toTime.ToString())); return(Ok(response)); }