private NodeStatsResponse _NodeStats(string path, NodeInfoStats nodeInfoStats) { if (nodeInfoStats.HasFlag(NodeInfoStats.All)) { path += "?all=true"; } else { var options = new List<string>(); if (nodeInfoStats.HasFlag(NodeInfoStats.FileSystem)) options.Add("fs=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.Indices)) options.Add("indices=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.OS)) options.Add("os=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.Process)) options.Add("process=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.JVM)) options.Add("jvm=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.ThreadPool)) options.Add("thread_pool=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.Network)) options.Add("network=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.Transport)) options.Add("transport=true"); if (nodeInfoStats.HasFlag(NodeInfoStats.HTTP)) options.Add("http=true"); path += "?" + string.Join("&", options); } var status = this.Connection.GetSync(path); var r = this.Deserialize<NodeStatsResponse>(status); return r; }
private NodeStatsResponse _NodeStats(string path, NodeInfoStats nodeInfoStats) { if (nodeInfoStats.HasFlag(NodeInfoStats.All)) { path += "?all=true"; } else { var options = new List <string>(); if (nodeInfoStats.HasFlag(NodeInfoStats.FileSystem)) { options.Add("fs=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.Indices)) { options.Add("indices=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.OS)) { options.Add("os=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.Process)) { options.Add("process=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.JVM)) { options.Add("jvm=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.ThreadPool)) { options.Add("thread_pool=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.Network)) { options.Add("network=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.Transport)) { options.Add("transport=true"); } if (nodeInfoStats.HasFlag(NodeInfoStats.HTTP)) { options.Add("http=true"); } path += "?" + string.Join("&", options); } var status = this.Connection.GetSync(path); var r = this.Deserialize <NodeStatsResponse>(status); return(r); }
/// <summary> /// Gets the health status of each node in the cluster, for the specified indexes. /// </summary> public INodeStatsResponse NodeStats(IEnumerable<string> nodes, NodeInfoStats nodeInfoStats) { var path = this.PathResolver.CreateNodePath(nodes, "stats"); return this._NodeStats(path, nodeInfoStats); }
/// <summary> /// Gets the health status of each node in the cluster, for the specified indexes. /// </summary> public INodeStatsResponse NodeStats(NodeInfoStats nodeInfoStats) { var path = this.PathResolver.CreateNodePath("stats"); return this._NodeStats(path, nodeInfoStats); }
/// <summary> /// Gets the health status of each node in the cluster, for the specified indexes. /// </summary> public INodeStatsResponse NodeStats(IEnumerable <string> nodes, NodeInfoStats nodeInfoStats) { var path = this.PathResolver.CreateNodePath(nodes, "stats"); return(this._NodeStats(path, nodeInfoStats)); }
/// <summary> /// Gets the health status of each node in the cluster, for the specified indexes. /// </summary> public INodeStatsResponse NodeStats(NodeInfoStats nodeInfoStats) { var path = this.PathResolver.CreateNodePath("stats"); return(this._NodeStats(path, nodeInfoStats)); }