@Test public void group_constructor() { final TagValueExpression expr = new TagValueExpression(new IdentifierGroupExpression("foobar"), "host"); assertEquals("tag(foobar, host)", expr.configString().toString()); }
@Override public StringBuilder configString() { return new StringBuilder() .append("tag(") .append(expr_.mapCombine(TimeSeriesMetricExpression::configString, GroupExpression::configString)) .append(", ") .append(ConfigSupport.maybeQuoteIdentifier(tag_)) .append(")"); }
TagValueExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { return new StringBuilder() .append("tag(") .append(expr_.mapCombine(TimeSeriesMetricExpression::configString, GroupExpression::configString)) .append(", ") .append(ConfigSupport.maybeQuoteIdentifier(tag_)) .append(")"); } }
TagValueExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { return new StringBuilder() .append("tag(") .append(expr_.mapCombine(TimeSeriesMetricExpression::configString, GroupExpression::configString)) .append(", ") .append(ConfigSupport.maybeQuoteIdentifier(tag_)) .append(")"); } TagValueExpression(Any2<TimeSeriesMetricExpression, GroupExpression> expr, String tag);  TagValueExpression(TimeSeriesMetricExpression expr, String tag);  TagValueExpression(GroupExpression expr, String tag); }
TagValueExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { return new StringBuilder() .append("tag(") .append(expr_.mapCombine(TimeSeriesMetricExpression::configString, GroupExpression::configString)) .append(", ") .append(ConfigSupport.maybeQuoteIdentifier(tag_)) .append(")"); } TagValueExpression(Any2<TimeSeriesMetricExpression, GroupExpression> expr, String tag);  TagValueExpression(TimeSeriesMetricExpression expr, String tag);  TagValueExpression(GroupExpression expr, String tag); @Override Collection<TimeSeriesMetricExpression> getChildren(); @Override TimeSeriesMetricDeltaSet apply(Context ctx); @Override int getPriority(); @Override StringBuilder configString(); }
TagValueExpression implements TimeSeriesMetricExpression { @Override public StringBuilder configString() { return new StringBuilder() .append("tag(") .append(expr_.mapCombine(TimeSeriesMetricExpression::configString, GroupExpression::configString)) .append(", ") .append(ConfigSupport.maybeQuoteIdentifier(tag_)) .append(")"); } TagValueExpression(Any2<TimeSeriesMetricExpression, GroupExpression> expr, String tag);  TagValueExpression(TimeSeriesMetricExpression expr, String tag);  TagValueExpression(GroupExpression expr, String tag); @Override Collection<TimeSeriesMetricExpression> getChildren(); @Override TimeSeriesMetricDeltaSet apply(Context ctx); @Override int getPriority(); @Override StringBuilder configString();  }