Schema:

LOCAL

AUTOMATIC_DATA_QUALITY_MONITORING_RESULTS view

This view displays the results of automatic data quality monitoring, which uses anomaly detection to evaluate metrics such as row count and freshness for tables in your account. Each row represents the evaluation of a single metric for a monitored table on a given evaluation date, and includes the observed value, the forecasted value and expected range, and whether the observed value was flagged as an anomaly.

The view returns one row per table, metric, and evaluation date for the most recent evaluation, restricted to your account.

Snowflake automatically selects a set of popular tables in your account to monitor, based on recent query activity and related usage signals such as how often tables are read and how frequently they change. For each selected table, Snowflake evaluates metrics such as row count and freshness and writes the anomaly verdicts to this view.

Automatic monitoring is computed by Snowflake and does not incur compute charges to your account. Billing applies only when a data metric function (DMF) that you configure explicitly runs on a scheduled object.

Columns

The columns in the view are defined as follows:

Column nameData typeDescription
MEASUREMENT_TIMETIMESTAMP_LTZThe time at which the monitoring job produced this result.
EVALUATION_DATEDATEThe date for which the metric was evaluated.
TABLE_IDNUMBERInternal/system-generated identifier of the monitored table.
TABLE_NAMEVARCHARName of the monitored table.
TABLE_SCHEMAVARCHARName of the schema that contains the monitored table.
TABLE_DATABASEVARCHARName of the database that contains the monitored table.
METRIC_NAMEVARCHARName of the metric that was evaluated, such as ROW_COUNT or FRESHNESS.
VALUEFLOATThe observed (actual) value of the metric.
FORECASTFLOATThe value forecasted for the metric by the anomaly detector.
LOWER_BOUNDFLOATLower bound of the expected range for the metric value.
UPPER_BOUNDFLOATUpper bound of the expected range for the metric value.
IS_ANOMALYBOOLEANWhether the observed value was flagged as anomalous.

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