コード例 #1
0
ファイル: SQLController.cs プロジェクト: meganerd/Opserver
        public ActionResult TopDetail(string node, string handle, int?offset = null)
        {
            var planHandle = HttpServerUtility.UrlTokenDecode(handle);

            var i = SQLInstance.Get(node);

            var vd = new OpsTopDetailModel
            {
                Instance = i,
                Op       = i.GetTopOperation(planHandle, offset).Data
            };

            return(View("Operations.Top.Detail", vd));
        }
コード例 #2
0
        public ActionResult TopDetail(string node, string handle, int?offset = null)
        {
            var planHandle = HttpServerUtility.UrlTokenDecode(handle);
            var instance   = SQLInstance.Get(node);

            if (instance == null)
            {
                return(ContentNotFound("Server " + node + " not found."));
            }

            var vd = new OpsTopDetailModel
            {
                Instance = instance,
                Op       = instance.GetTopOperation(planHandle, offset).Data
            };

            return(View("Operations.Top.Detail", vd));
        }