public ActionResult <object> Get() { string d = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss"); object ping = new { System = "Is system fully alive?", Swagger = "/swagger", Date = d, external_integration = _diagnostics.ExternalConnection(), Background_worker = _diagnostics.BackgroundWorkers(), cache_server = _diagnostics.CacheServer(), database = _diagnostics.Database() }; _logger.LogInformation($"User called diagnostics at {d}"); return(ping); }