public LeastConnectionsStats(
     DrawingElement drawing,
     LeastConnectionsNode leastConnections,
     DashboardConfiguration dashboardConfiguration,
     DashboardConfiguration.NodeConfiguration nodeConfiguration)
     : base(
         drawing,
         leastConnections,
         dashboardConfiguration,
         new[] { new LeastConnectionsTile(drawing, leastConnections, nodeConfiguration, dashboardConfiguration.TrafficIndicator) })
 {
 }
示例#2
0
 private void ConfigureLeastConnectionsNodes(NodeGraphConfiguration configuration, List <INode> nodes)
 {
     if (configuration.LeastConnectionsNodes != null)
     {
         foreach (var leastConnectionsConfiguration in configuration.LeastConnectionsNodes)
         {
             var node = new LeastConnectionsNode
             {
                 Name     = leastConnectionsConfiguration.Name,
                 Disabled = leastConnectionsConfiguration.Disabled,
                 Outputs  = leastConnectionsConfiguration.Outputs
             };
             leastConnectionsConfiguration.Node = node;
             nodes.Add(node);
         }
     }
 }
示例#3
0
 public LeastConnectionsTile(
     DrawingElement drawing,
     LeastConnectionsNode leastConnections,
     DashboardConfiguration.NodeConfiguration nodeConfiguration,
     TrafficIndicatorConfiguration trafficIndicatorConfiguration)
     : base(
         drawing,
         leastConnections,
         trafficIndicatorConfiguration,
         nodeConfiguration?.Title ?? "Least connections",
         "least_connections",
         null,
         true,
         false,
         true)
 {
 }