public LeastConnectionsStats( DrawingElement drawing, LeastConnectionsNode leastConnections, DashboardConfiguration dashboardConfiguration, DashboardConfiguration.NodeConfiguration nodeConfiguration) : base( drawing, leastConnections, dashboardConfiguration, new[] { new LeastConnectionsTile(drawing, leastConnections, nodeConfiguration, dashboardConfiguration.TrafficIndicator) }) { }
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); } } }
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) { }