@@ -8997,6 +8997,61 @@ components:
89978997 type: string
89988998 x-enum-varnames:
89998999 - DATA_QUALITY_METRICS
9000+ MonitorFormulaAndFunctionDataQualityDiffFunction:
9001+ description: |-
9002+ Function applied to the measure before it is compared against the predicted bounds.
9003+ enum:
9004+ - DIFF
9005+ - DIFF_PERCENT
9006+ example: "DIFF"
9007+ type: string
9008+ x-enum-varnames:
9009+ - DIFF
9010+ - DIFF_PERCENT
9011+ MonitorFormulaAndFunctionDataQualityDiffType:
9012+ description: |-
9013+ How the difference between the source and target measures is computed.
9014+ `absolute` subtracts the two values, `diff_percent` expresses the difference
9015+ as a percentage of the source value.
9016+ enum:
9017+ - absolute
9018+ - diff_percent
9019+ example: "absolute"
9020+ type: string
9021+ x-enum-varnames:
9022+ - ABSOLUTE
9023+ - DIFF_PERCENT
9024+ MonitorFormulaAndFunctionDataQualityEntityMetricConfig:
9025+ description: |-
9026+ Measure configuration for one side of a source to target comparison.
9027+ properties:
9028+ custom_sql:
9029+ description: Custom SQL query used to compute the measure for this entity.
9030+ example: "SELECT COUNT(*) FROM users AS dd_value"
9031+ type: string
9032+ custom_where:
9033+ description: Custom WHERE clause applied when computing the measure for this entity.
9034+ example: "USER_ID = 123"
9035+ type: string
9036+ entity_id:
9037+ description: Identifier of the data entity to measure.
9038+ example: "01234567-89ab-cdef-0123-456789abcdef"
9039+ type: string
9040+ entity_type:
9041+ description: Type of the data entity to measure.
9042+ example: "table"
9043+ type: string
9044+ group_by_columns:
9045+ description: Columns to group results by when computing the measure for this entity.
9046+ example: ["col1", "col2"]
9047+ items:
9048+ description: A column name to group results by.
9049+ type: string
9050+ type: array
9051+ required:
9052+ - entity_id
9053+ - entity_type
9054+ type: object
90009055 MonitorFormulaAndFunctionDataQualityMeasure:
90019056 description: |-
90029057 The data quality measure to query. Common values include:
@@ -9005,6 +9060,59 @@ components:
90059060 `sum`, `uniqueness`. Additional values may be supported.
90069061 example: "row_count"
90079062 type: string
9063+ MonitorFormulaAndFunctionDataQualityModelBoundsOverride:
9064+ description: |-
9065+ Restricts which predicted bound the monitor alerts on. `UPPER_ONLY` alerts only when
9066+ the measure rises above the upper bound, `LOWER_ONLY` only when it falls below the
9067+ lower bound. When unset, the monitor alerts on both.
9068+ enum:
9069+ - UPPER_ONLY
9070+ - LOWER_ONLY
9071+ example: "UPPER_ONLY"
9072+ type: string
9073+ x-enum-varnames:
9074+ - UPPER_ONLY
9075+ - LOWER_ONLY
9076+ MonitorFormulaAndFunctionDataQualityModelConfiguration:
9077+ description: |-
9078+ Tuning options for the anomaly detection model used by the monitor.
9079+ properties:
9080+ auto_resolve_days:
9081+ description: |-
9082+ Number of days after which an open alert is automatically resolved.
9083+ When unset, alerts stay open until the measure returns within bounds.
9084+ example: 7
9085+ format: int32
9086+ maximum: 365
9087+ minimum: 1
9088+ type: integer
9089+ enable_flatline_detection:
9090+ description: |-
9091+ Whether to alert when the measure stops changing entirely.
9092+ Defaults to `true`.
9093+ example: true
9094+ type: boolean
9095+ function:
9096+ $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualityDiffFunction"
9097+ min_lower_bound_size:
9098+ description: |-
9099+ Minimum distance between the predicted value and the lower bound. Widening the
9100+ lower bound to at least this size suppresses alerts on small downward deviations.
9101+ When unset, no minimum is enforced.
9102+ example: 10.0
9103+ format: double
9104+ type: number
9105+ min_upper_bound_size:
9106+ description: |-
9107+ Minimum distance between the predicted value and the upper bound. Widening the
9108+ upper bound to at least this size suppresses alerts on small upward deviations.
9109+ When unset, no minimum is enforced.
9110+ example: 10.0
9111+ format: double
9112+ type: number
9113+ model_bounds_override:
9114+ $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualityModelBoundsOverride"
9115+ type: object
90089116 MonitorFormulaAndFunctionDataQualityModelTypeOverride:
90099117 description: Override for the model type used in anomaly detection.
90109118 enum:
@@ -9038,6 +9146,8 @@ components:
90389146 description: A column name to group results by.
90399147 type: string
90409148 type: array
9149+ model_configuration:
9150+ $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualityModelConfiguration"
90419151 model_type_override:
90429152 $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualityModelTypeOverride"
90439153 sensitivity:
@@ -9048,6 +9158,8 @@ components:
90489158 example: 3.0
90499159 format: double
90509160 type: number
9161+ source_to_target_config:
9162+ $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualitySourceToTargetConfig"
90519163 type: object
90529164 MonitorFormulaAndFunctionDataQualityQueryDefinition:
90539165 description: A formula and functions data quality query.
@@ -9090,6 +9202,27 @@ components:
90909202 - measure
90919203 - filter
90929204 type: object
9205+ MonitorFormulaAndFunctionDataQualitySourceToTargetConfig:
9206+ description: |-
9207+ Configuration for a source to target monitor, which compares the same measure
9208+ across two data entities and alerts on the difference between them.
9209+ properties:
9210+ diff_type:
9211+ $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualityDiffType"
9212+ entity_type:
9213+ description: Type of the data entities being compared.
9214+ example: "table"
9215+ type: string
9216+ source:
9217+ $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualityEntityMetricConfig"
9218+ target:
9219+ $ref: "#/components/schemas/MonitorFormulaAndFunctionDataQualityEntityMetricConfig"
9220+ required:
9221+ - source
9222+ - target
9223+ - diff_type
9224+ - entity_type
9225+ type: object
90939226 MonitorFormulaAndFunctionEventAggregation:
90949227 description: Aggregation methods for event platform queries.
90959228 enum:
0 commit comments