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