/** * Sets the {@link MetricsFilterPredicate} to be used when evaluating a metrics filter * and returns the {@link MetricsFilter} object for method chaining. * * The predicate should be one of {@link MetricsPrefixPredicate}, {@link MetricsTagPredicate} * or {@link MetricsAndOperator}. */ public MetricsFilter withPredicate(MetricsFilterPredicate predicate) { setPredicate(predicate); return this; } }
filter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { filter.setPredicate(new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { filter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;
currentFilter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { currentFilter.setPredicate(new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { currentFilter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;
/** * @param predicate the {@link MetricsFilterPredicate} to be used when evaluating a metrics filter * @return the {@link MetricsFilter} object for method chaining. * * The predicate should be one of {@link MetricsPrefixPredicate}, {@link MetricsTagPredicate} * or {@link MetricsAndOperator}. */ @SuppressWarnings("checkstyle:hiddenfield") public MetricsFilter withPredicate(MetricsFilterPredicate predicate) { setPredicate(predicate); return this; } }
filter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { filter.setPredicate( new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { filter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;
currentFilter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { currentFilter.setPredicate( new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { currentFilter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;
/** * Sets the {@link MetricsFilterPredicate} to be used when evaluating a metrics filter * and returns the {@link MetricsFilter} object for method chaining. * * The predicate should be one of {@link MetricsPrefixPredicate}, {@link MetricsTagPredicate} * or {@link MetricsAndOperator}. */ public MetricsFilter withPredicate(MetricsFilterPredicate predicate) { setPredicate(predicate); return this; } }
/** * @param predicate the {@link MetricsFilterPredicate} to be used when evaluating a metrics filter * @return the {@link MetricsFilter} object for method chaining. * * The predicate should be one of {@link MetricsPrefixPredicate}, {@link MetricsTagPredicate} * or {@link MetricsAndOperator}. */ @SuppressWarnings("checkstyle:hiddenfield") public MetricsFilter withPredicate(MetricsFilterPredicate predicate) { setPredicate(predicate); return this; } }
filter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { filter.setPredicate( new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { filter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;
filter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { filter.setPredicate(new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { filter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;
currentFilter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { currentFilter.setPredicate( new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { currentFilter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;
currentFilter.setPredicate(new MetricsPrefixPredicate(getText())); } else if (name.equals("Tag")) { currentFilter.setPredicate(new MetricsTagPredicate(new Tag(currentTagKey, currentTagValue))); currentTagKey = null; currentTagValue = null; } else if (name.equals("And")) { currentFilter.setPredicate(new MetricsAndOperator(andOperandsList)); andOperandsList = null;