public ActionResult MonitorDBApi(string piServer, DateTime?cdtFrom, DateTime?cdtEnd) { piServer = string.IsNullOrEmpty(piServer) ? Constant.PIPServer : piServer; ViewBag.piServer = piServer; MonitorDB db = new Models.MonitorDB(piServer); return(Json(db, JsonRequestBehavior.AllowGet)); }
public string MonitorDBApiString(string piServer, DateTime?cdtFrom, DateTime?cdtEnd) { piServer = string.IsNullOrEmpty(piServer) ? Constant.PIPServer : piServer; ViewBag.piServer = piServer; MonitorDB db = new Models.MonitorDB(piServer); JavaScriptSerializer jsonSerializer = new JavaScriptSerializer(); string json = jsonSerializer.Serialize(db); return(json); }
public ActionResult MonitorDB(string piServer, DateTime?cdtFrom, DateTime?cdtEnd) { piServer = string.IsNullOrEmpty(piServer) ? Constant.PIPServer : piServer; ViewBag.piServer = piServer; if (Constant.IsWebPerfLogEnabled == true) { LogDBStatus(piServer); } MonitorDB db = new Models.MonitorDB(piServer); return(View(db)); }