metadata-qa-api icon indicating copy to clipboard operation
metadata-qa-api copied to clipboard

Set what RuleChecker output should contain

Open pkiraly opened this issue 4 years ago • 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)

pkiraly avatar Nov 29 '21 16:11 pkiraly