ANOMALY_ INSIGHTS!RENAME_ MONITOR¶
Changes the name of an existing anomaly monitor.
Syntax¶
Arguments¶
'alias'Current name of the monitor. The name isn’t case-sensitive.
Data type: VARCHAR
'new_alias'New name for the monitor. The name must be unique within the account and isn’t case-sensitive.
Data type: VARCHAR
Output¶
Returns a VARCHAR status message that confirms the operation.
Access control requirements¶
Users with any of the following roles can call this method:
- ACCOUNTADMIN system role
- GLOBALORGADMIN system role
- SNOWFLAKE.APP_USAGE_ADMIN application role
Usage notes¶
- The method fails if no monitor with the specified name exists in the account, or if the new name is already in use.
- Renaming a monitor preserves its configuration, anomaly history, and notification list. No recalculation is triggered.
Example¶
Rename the monitor Eng-Platform to Eng-Foundations: