package expression
Type Members
-
case class
ExpressionCheckCalculator(checkId: String, formula: String) extends CheckCalculator with FormulaParser with Product with Serializable
Expression check calculator.
Expression check calculator. Verifies if boolean expression defined in check evalutes to true (success) or false (failure).
- checkId
Check ID
- formula
Boolean expression to evaluate
- To do
Expression check calculator is quite different from other check calculators and, therefore, does not conform to basic CheckCalculator class. Thus, implementation of Expression check calculator requires that most of the abstract methods from CheckCalculator be overridden to throw UnsupportedOperationException. In addition, there are plans to deprecate Trend Checks in the future due to their functionality now is moved (and enhanced) to trend metrics. Concluding the above, it is quite likely, that check calculators will be refactored later without changing the external API.