transientFlags[k] = e.getTransient(); if (!transientFlags[k]) { numNonTransientExpression++; expressions.put(e.getLabel(), jexl.createExpression(e.getExpression())); } catch (JexlException ex) { throw new ExpressionException(ex, "Failed to parse expression label '{}'.", e.getLabel());
if (expression.getExpression() == null || expression.getLabel() == null) { throw new ValidationException("Query expression fields must be set: {}", expression); if (labels.containsKey(expression.getLabel())) { final String type = labels.get(expression.getLabel()); throw new ValidationException("Query expression label '{}' conflict: {} with that label is already defined.", expression.getLabel(), type); } else { labels.put(expression.getLabel(), "expression");
sourceOut.setLabel("ifOutOctets"); request.setExpressions(Arrays.asList(new Expression("ifInPercent", "(8 * ifInOctects / 1000000) / ifInOctets.ifHighSpeed * 100", false), new Expression("ifOutPercent", "(8 * ifOutOctects / 1000000) / ifOutOctets.ifHighSpeed * 100", false)));
if (expression.getExpression() == null || expression.getLabel() == null) { throw new ValidationException("Query expression fields must be set: {}", expression); if (labels.containsKey(expression.getLabel())) { final String type = labels.get(expression.getLabel()); throw new ValidationException("Query expression label '{}' conflict: {} with that label is already defined.", expression.getLabel(), type); } else { labels.put(expression.getLabel(), "expression");
sourceOut.setLabel("ifOutOctets"); request.setExpressions(Arrays.asList(new Expression("ifInPercent", "(8 * ifInOctects / 1000000) / ifInOctets.ifHighSpeed * 100", false), new Expression("ifOutPercent", "(8 * ifOutOctects / 1000000) / ifOutOctets.ifHighSpeed * 100", false)));
transientFlags[k] = e.getTransient(); if (!transientFlags[k]) { numNonTransientExpression++; expressions.put(e.getLabel(), jexl.createExpression(e.getExpression())); } catch (JexlException ex) { throw new ExpressionException(ex, "Failed to parse expression label '{}'.", e.getLabel());