Matches regex
Overview
Sifflet Matches Regex Monitor Template is a field-level format validation monitor. It accepts string fields and fails if the monitored field contains data that do not fulfill the regular expression (regex) conditions provided.
As Code
Monitor Kind: FieldFormat
All the format monitors are grouped under the FieldFormat
Monitor kind.
format.kind: Regex
A format kind needs to be set to Regex
to use the regular expression mode of the FieldFormat
as code monitor.
regex:
The regular expression (regex) pattern must be provided in the regex
parameter for matching.
field: the field that the monitor should check the format of
parameters:
kind: FieldFormat
field: CITY
format:
kind: Regex
regex: "\\b(\\(\\d{3}\\)\\s?|\\d{3}[-\\.\\s]?)\\d{3}[-\\.\\s]?\\d{4}\\b"
Filtering and grouping
Field format Monitors allow for filtering and grouping parameters.
parameters:
kind: FieldFormat
field: CITY
format:
kind: Regex
regex: "\\b(\\(\\d{3}\\)\\s?|\\d{3}[-\\.\\s]?)\\d{3}[-\\.\\s]?\\d{4}\\b"
whereStatement: NOT invalid
groupBy:
field: REGION
Time Window (Beta)
Beta
Field format Monitors now allow time window parameters.
Threshold Settings (Beta)
Beta
Field format Monitors now allow threshold configuration.
Updated about 1 month ago