Value Range Validation

Overview

Sifflet Value Range Validation Monitor Template is a field-level validation monitor. It checks if the monitored field contains a numeric value that falls within a predefined range. It fails if any value is outside the specified range.

As Code

Monitor Kind: ValueRange
All range-based monitors are grouped under the ValueRange Monitor kind.

range:
The acceptable numeric range must be provided in the range parameter, specifying the minimum and maximum values along with inclusivity options.

field:
The field that the monitor should check for the numeric range.

parameters:
  kind: ValueRange
  field: ORDER_TOTAL
  range:
    min: 0
    max: 10
    isMinInclusive: false
    isMaxInclusive: false

Filtering and grouping

Value range Monitors allow for filtering and grouping parameters.

parameters:
  kind: ValueRange
  field: ORDER_TOTAL
  range:
    min: 0
    max: 10
    isMinInclusive: false
    isMaxInclusive: false
  whereStatement: NOT invalid
  groupBy:
    field: REGION

Time Window (Beta)

📘

Beta

Value range Monitors now allow time window parameters.

Threshold Settings (Beta)

📘

Beta

Value range Monitors now allow threshold configuration.