dot-evaluateThresholds function

Internal function to evaluate the data quality checks against given thresholds.