ALTER RESOURCE MONITOR

statementsupportedAccounts, users, sessions, warehouses

docs.snowflake.com ↗

Object: RESOURCE MONITOR

Modifies the properties and triggers for an existing resource monitor. Use this command to increase or decrease the credit quota, change the scheduling information, or change/replace the triggers for a resource monitor.

Syntax

supportedpartialnot supportednot scored

ALTER RESOURCE MONITOR [ IF EXISTS ] <name> [ SET { [ CREDIT_QUOTA = <num> ]
                                                    [ FREQUENCY = { MONTHLY | DAILY | WEEKLY | YEARLY | NEVER } ]
                                                    [ START_TIMESTAMP = { <timestamp> | IMMEDIATELY } ]
                                                    [ END_TIMESTAMP = <timestamp> ]
                                                    [ NOTIFY_USERS = ( <user_name> [ , <user_name> , ... ] ) ] } ]
                                            [ TRIGGERS triggerDefinition [ triggerDefinition ... ] ]

Where

triggerDefinition ::=
   ON <threshold> PERCENT DO { SUSPEND | SUSPEND_IMMEDIATE | NOTIFY }

Parameters

NameRequiredDescription
nameSpecifies the identifier for the resource monitor to alter. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
SET ...
CREDIT_QUOTA = numSpecifies the number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota. If a value is not specified for a resource monitor, the monitor has no quota and will never reach 100% usage within the specified interval.
FREQUENCY = MONTHLY | DAILY | WEEKLY | YEARLY | NEVERThe frequency interval at which the credit usage resets to 0. If you specify NEVER for the frequency, the credit usage for the warehouse does not reset.
START_TIMESTAMP = timestamp | IMMEDIATELYThe date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you specify IMMEDIATELY for the start timestamp, the current timestamp is used. If you specify a date without a time, the current time is used. If you set a time without specifying a time zone, UTC is used as the default time zone. Specify the timestamp as a string in one of these formats: 'YYYY-MM-DD', 'YYYY-MM-DD HH:MI', or 'YYYY-MM-DD HH:MI <time_zone>' (for example, '2026-10-15 13:30 PST'). Seconds aren’t supported; a value that includes seconds returns an invalid date/time format error.
END_TIMESTAMP = timestampThe date and time when the resource monitor suspends the assigned warehouses. Use the same timestamp formats as START_TIMESTAMP.
NOTIFY_USERS = ( user_name [ , user_name , ... ] )Specifies the list of users to receive email notifications on resource monitors. If a user identifier includes spaces or special characters or is case-sensitive, then the identifier must be enclosed in double quotes (e.g. “Mary Smith”). See Identifier requirements for details. The user identifier, user_name, is the value of the name column from the output of SHOW USERS. Each user listed must have a verified email address. For instructions on verifying email addresses in the web interface, see: Verify your email address. Email notifications for non-administrator users do not supersede email notifications for administrators. Any account administrators that have enabled email notifications will continue to receive email notifications. Note The following limitations apply for non-administrator users: Non-administrator users can only receive notifications for warehouse monitors. Non-administrator users are notified by email but can’t see notifications in Snowsight. Non-administrator users can’t create resource monitors. Non-administrator users can’t assign other users to be notified.
TRIGGERS ... (aka actions)Specifies one or more triggers for the resource monitor. Each trigger definition consists of: ON threshold PERCENT (usage percentage; values larger than 100 are supported) DO SUSPEND | SUSPEND_IMMEDIATE | NOTIFY (action to perform when the threshold is reached). For more details, see CREATE RESOURCE MONITOR.

Usage notes

See also

Referenced by