示例#1
0
 public ActionResult Dashboard(string cluster, string node)
 {
     var vd = new DashboardModel
     {
         Clusters = ElasticCluster.AllClusters,
         Refresh = true,
         View = DashboardModel.Views.Cluster,
         WarningsOnly = true
     };
     return View("Cluster", vd);
 }
示例#2
0
 public ActionResult Indices(string cluster, string node, string guid)
 {
     var current = GetNode(cluster, node ?? guid);
     var vd = new DashboardModel
         {
             Clusters = ElasticCluster.AllClusters,
             Refresh = true,
             View = DashboardModel.Views.Indices,
             Current = current
         };
     return View("Indices", vd);
 }
示例#3
0
 public ActionResult Node(string cluster, string node, DashboardModel.Popups popup = DashboardModel.Popups.None)
 {
     var cn = GetNode(cluster, node);
     var vd = new DashboardModel
         {
             Clusters = ElasticCluster.AllClusters,
             Refresh = true,
             View = DashboardModel.Views.Node,
             Current = cn,
             Popup = popup
         };
     return View("Node", vd);
 }
示例#4
0
 public ActionResult Shards(string cluster, string server)
 {
     var vd = new DashboardModel
     {
         Clusters = ElasticCluster.AllClusters,
         Refresh = true,
         View = DashboardModel.Views.Shards
     };
     return View("Cluster.Shards", vd);
 }
示例#5
0
 public ActionResult Shards(string cluster, string server, bool ajax = false)
 {
     var vd = new DashboardModel
     {
         Clusters = ElasticCluster.AllClusters,
         Refresh = true,
         View = DashboardModel.Views.Shards
     };
     return View(ajax ? "Dashboard.Cluster.Shards" : "Dashboard", vd);
 }