ANOMALY_ INSIGHTS!GET_ MONITOR_ CONFIG¶
Returns the configuration for a single anomaly monitor in the current account.
Syntax¶
Arguments¶
'alias'Name of the monitor. The name isn’t case-sensitive.
Data type: VARCHAR
Output¶
Returns a VARIANT that contains the monitor’s persisted configuration. The resource_tags and service_types keys are always present,
even when empty. Tags are returned in the resolved form, which names each tag instead of using a reference string. For an example,
see Monitor configuration.
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
- SNOWFLAKE.APP_USAGE_VIEWER application role
Usage notes¶
- The method fails if no monitor with the specified name exists in the account.
- To return the configuration for every monitor in one call, use ANOMALY_INSIGHTS!LIST_MONITORS.
Example¶
Return the configuration for the monitor named Eng-Platform: