Exemplo n.º 1
0
        public override void Handle()
        {
            var node = PollingEngine.GetNode("HAProxy", Node_Name) as HAProxyNode;

            if (node != null)
            {
                node.Count("Client IP: " + Client_IP, this);
                node.Count("URL: " + this.GetUnique_HTTP_Request_URL(), this);
            }
        }
Exemplo n.º 2
0
        public IEnumerable <string> GetHAProxyCounterKeys(string nodeKey)
        {
            var node = PollingEngine.GetNode("HAProxy", nodeKey) as HAProxyNode;

            if (node == null)
            {
                return(Enumerable.Empty <string>());
            }
            return(node.Counters.Select(x => x.Key).OrderBy(x => x));
        }
Exemplo n.º 3
0
        public NodeStatusViewModel GetNodeStatus(string nodeType, string nodeKey, bool?includeData = false)
        {
            var node = PollingEngine.GetNode(HttpUtility.UrlDecode(nodeType), HttpUtility.UrlDecode(nodeKey));

            return(GetNodeStatusViewModel(node, includeData));
        }