<budget_ name>!ADD_ NOTIFICATION_ INTEGRATION¶
Adds a queue or webhook notification integration to a custom budget or the account budget.
语法
实参
'integration_name'要添加到预算的队列或 Webhook 通知集成的名称。
返回
返回 VARCHAR 值,指明是否已成功添加通知集成。
- If the notification integration was added successfully, the method returns
Integration added successfully. - 否则该方法会返回错误消息。
访问控制要求
要为自定义预算调用此方法,需要具备以下权限和角色:
- ADMIN instance role for the budget instance.
- 对包含预算实例的数据库和架构的 USAGE 权限。
For more information, see Budgets roles and privileges.
此外,还必须授予 SNOWFLAKE 应用程序以下权限:
- 通知集成的 USAGE 权限:
如果通知集成针对的是使用密钥对象的 Webhook,则还必须授予 SNOWFLAKE 应用程序以下权限:
- 对该密钥的 READ 权限。
- 对包含该密钥的架构的 USAGE 权限。
- 对包含该架构的数据库的 USAGE 权限。
有关信息,请参阅:
使用说明
Calling this method does not return the object. Because of this, you can’t use method chaining to call another method on the return value of this method. Instead, call each method in a separate SQL statement.
示例
The following example adds the notification integration budgets_notification_integration to the account budget: