public static string GetStringValue(this NodesUsageMetric enumValue)
        {
            if ((enumValue & NodesUsageMetric.All) != 0)
            {
                return("_all");
            }
            var list = new List <string>();

            if ((enumValue & NodesUsageMetric.RestActions) != 0)
            {
                list.Add("rest_actions");
            }
            return(string.Join(",", list));
        }
Exemple #2
0
 internal Metrics(NodesUsageMetric metric)
 {
     _enumValue = metric;
 }