Schema:

ACCOUNT_USAGE , READER_ACCOUNT_USAGE

RESOURCE_MONITORS view

This Account Usage view displays the resource monitors that have been created in the account.

Columns

Column NameData TypeDescription
READER_ACCOUNT_NAMEVARCHARName of the reader account where the resource monitor was created. Column only included in view in READER_ACCOUNT_USAGE schema.
NAMEVARCHARName of the resource monitor.
CREATEDTIMESTAMP_LTZDate and time when the resource monitor was created.
CREDIT_QUOTAVARIANTMonthly credit quota for the resource monitor.
USED_CREDITSVARIANTNumber of credits used in the current monthly billing cycle by all the warehouses associated with the resource monitor.
REMAINING_CREDITSFLOATNumber of credits still available to use in the current monthly billing cycle.
OWNERVARCHARName of the role that owns the resource monitor.
WAREHOUSESVARCHARNames of the warehouses that are associate with the resource monitor.
NOTIFYNUMBERPercentage of the credit quota. When consumption reaches this threshold, notifications are sent.
SUSPENDNUMBERPercentage of the credit quota. When consumption reaches this threshold, assigned warehouses are suspended but currently running queries are allowed to complete.
SUSPEND_IMMEDIATENUMBERPercentage of the credit quota. When consumption reaches this threshold, all assigned warehouses are suspended immediately, including those running queries.
LEVELVARCHARIndicates whether it is an account-level or a warehouse-level resource monitor.
READER_ACCOUNT_DELETED_ONTIMESTAMP_LTZTime and date (in the UTC time zone) when the reader account is deleted.

Usage notes

  • Latency for the view may be up to 120 minutes (2 hours).
  • The view only displays objects for which the current role for the session has been granted access privileges.