Schema:

LOCAL

DATA_QUALITY_MONITORING_ANOMALY_DETECTION_STATUS view

This view displays a row for every time a data metric function (DMF) ran with anomaly detection enabled.

Columns

Column nameData typeDescription
scheduled_timeTIMESTAMP_LTZThe time that the DMF is scheduled to run based on the schedule that you set for the table or view.
change_commit_timeTIMESTAMP_LTZ

The time that the DMF trigger operation occurred, or None if the DMF is not scheduled to run by a trigger operation.

For information about the trigger operation, see Adjust the schedule for DMFs.

measurement_timeTIMESTAMP_LTZThe time at which the metric was evaluated.
table_idNUMBERInternal, system-generated identifier of the table that is associated with the DMF.
table_nameVARCHARName of the table that is associated with the DMF.
table_schemaVARCHARName of the schema name that contains the table that is associated with the DMF.
table_databaseVARCHARName of the database that contains the table that is associated with the DMF.
metric_idNUMBERInternal, system-generated identifier of the DMF.
metric_nameVARCHARName of the DMF.
metric_schemaVARCHARName of the schema that contains the DMF.
metric_databaseVARCHARName of the database that contains the DMF.
metric_return_typeVARCHARReturn type of the DMF.
reference_idVARCHARThe ID to uniquely identify the metric entity reference, known as the association ID.
valueVARIANTThe result of the DMF evaluation.
is_anomalyBOOLEANIf TRUE, the value returned by the DMF is an anomaly because it was outside the range of upperbound and lowerbound.
upperboundNUMBERHighest value that should be returned by the DMF based on the anomaly-detecting algorithm. Values returned by the DMF that are above this upper bound are considered anomalies.
lowerboundNUMBERLowest value that should be returned by the DMF based on the anomaly-detecting algorithm. Values returned by the DMF that are below this lower bound are considered anomalies.
forecastNUMBERValue that the anomaly-detecting algorithm predicted would be returned by the DMF.

Access control requirements

The role used to query the view must be granted one of the following application roles:

  • SNOWFLAKE.DATA_QUALITY_MONITORING_VIEWER
  • SNOWFLAKE.DATA_QUALITY_MONITORING_ADMIN