pkiraly/metadata-qa-api

Set what RuleChecker output should contain

pkiraly opened this issue · 0 comments

There might be two information: 1) whether a rule passed or failed, and 2) what is the score associated with this rule (if any). Based on this there might be 3 options to rule the output: 1) only the status info 2) the score (if no score available, the status info) 3) both.

To implement it the MeasurementConfiguration() should have a new method withRuleCheckingOutputType which accepts one of an enumeration RuleCheckingOutputType: STATUS, SCORE, BOTH.

Example

new MeasurementConfiguration()
  ...
  .withRuleCheckingOutputType(RuleCheckingOutputType.STATUS)