public static string GetStringValue(this NodesStatsIndexMetric enumValue) { if ((enumValue & NodesStatsIndexMetric.All) != 0) { return("_all"); } var list = new List <string>(); if ((enumValue & NodesStatsIndexMetric.Store) != 0) { list.Add("store"); } if ((enumValue & NodesStatsIndexMetric.Indexing) != 0) { list.Add("indexing"); } if ((enumValue & NodesStatsIndexMetric.Get) != 0) { list.Add("get"); } if ((enumValue & NodesStatsIndexMetric.Search) != 0) { list.Add("search"); } if ((enumValue & NodesStatsIndexMetric.Merge) != 0) { list.Add("merge"); } if ((enumValue & NodesStatsIndexMetric.Flush) != 0) { list.Add("flush"); } if ((enumValue & NodesStatsIndexMetric.Refresh) != 0) { list.Add("refresh"); } if ((enumValue & NodesStatsIndexMetric.QueryCache) != 0) { list.Add("query_cache"); } if ((enumValue & NodesStatsIndexMetric.Fielddata) != 0) { list.Add("fielddata"); } if ((enumValue & NodesStatsIndexMetric.Docs) != 0) { list.Add("docs"); } if ((enumValue & NodesStatsIndexMetric.Warmer) != 0) { list.Add("warmer"); } if ((enumValue & NodesStatsIndexMetric.Completion) != 0) { list.Add("completion"); } if ((enumValue & NodesStatsIndexMetric.Segments) != 0) { list.Add("segments"); } if ((enumValue & NodesStatsIndexMetric.Translog) != 0) { list.Add("translog"); } if ((enumValue & NodesStatsIndexMetric.RequestCache) != 0) { list.Add("request_cache"); } if ((enumValue & NodesStatsIndexMetric.Recovery) != 0) { list.Add("recovery"); } return(string.Join(",", list)); }
internal IndexMetrics(NodesStatsIndexMetric metric) => _enumValue = metric;
internal IndexMetrics(NodesStatsIndexMetric metric) { _enumValue = metric; }