Skip to main content
Version: 1.0.0-beta

KRI Playground

The KRI Playground is a visual builder that lets you create and configure Key Risk Indicators using a drag-and-drop pipeline interface. Build your KRI logic visually, see a real-time preview of threshold calculations, and publish when ready.

KRI Playground

How It Works

The Playground presents a visual canvas where you build a KRI pipeline:

  1. Data Source → Define where the KRI gets its data
  2. Filter → Optional conditions to narrow the dataset
  3. Aggregation → How to calculate the metric (count, sum, average, etc.)
  4. Threshold → Define warning and critical threshold levels
  5. Schedule → How often the KRI should run

Building a KRI

Step 1 — Define the Data Source

Select the data source for your KRI:

Source TypeDescriptionExample
Entity QueryQuery audit universe entities"All business units with risk score > 15"
Finding MetricBased on finding data"Open critical findings count"
Action Plan MetricBased on remediation data"Overdue action plans"
Custom SQLAdvanced users can write SQL queriesCustom analytical queries

Step 2 — Set Thresholds

Configure when the KRI should trigger alerts:

Threshold TypeDescription
Warning (Amber)Approaching risk tolerance — investigate
Critical (Red)Exceeds risk tolerance — immediate action required
Normal (Green)Within acceptable range

The real-time preview shows how current data maps against your thresholds.

Step 3 — Configure Scheduling

FrequencyCron ExpressionUse Case
Daily0 6 * * *High-priority operational KRIs
Weekly0 6 * * 0Regular monitoring
Monthly0 6 1 * *Strategic KRIs
Quarterly0 6 1 */3 *Board-level indicators
CustomUser-defined cronSpecific schedules

Optionally link the KRI to:

  • An Audit Universe Item (universe_item_id) — the entity being monitored
  • A Risk Library Item (risk_library_id) — the risk being tracked

Step 5 — Preview & Validate

The real-time preview panel shows:

  • Current calculated value
  • Threshold visualization (gauge or chart)
  • Historical trend (if data exists)
  • Alert status based on current thresholds

Step 6 — Publish

KRIs follow a publish lifecycle:

KRI Fields

FieldTypeDescription
titleStringKRI display name
descriptionStringWhat this KRI measures
query_definitionStringSQL or logic definition
threshold_valueFloatCritical threshold
current_valueFloatLatest computed value
frequencyStringDAILY, WEEKLY, MONTHLY, QUARTERLY
categoryStringOPERATIONAL, FINANCIAL, COMPLIANCE, STRATEGIC
kri_statusStringDRAFT, VALIDATED, PUBLISHED, ARCHIVED
is_activeBooleanWhether actively monitored
pipeline_definitionJSONVisual pipeline configuration
cron_expressionStringCustom schedule (optional)
last_run_atDateTimeLast execution time
next_run_atDateTimeNext scheduled run

Permissions

ActionQA/CAManagerCAEAdmin
Create KRIs in Playground
Validate KRIs
Publish KRIs
Archive KRIs