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