public IActionResult GetMetricById([FromRoute] int id) { CpuMetric metric = _repository.GetById(id); return(Ok(metric)); }