Skip to contents

Returns basic diagnostic rules used by diagnose_cube(). Each rule defines how a specific data quality metric is computed and evaluated.

Usage

basic_cube_rules()

Value

A list of diagnostic rule definitions.

Details

Rules are implemented as lists containing:

  • id – name of the diagnostic metric

  • dimension – cube dimension being evaluated (e.g. temporal)

  • thresholds – reference values used to determine severity

  • compute() – function that calculates the metric

  • severity() – function assigning a severity level

  • message() – function generating a human-readable message

Contains the following rules:

Default thresholds are used.