<budget_name>!GET_NOTIFICATION_THRESHOLD

Returns the notification threshold for a budget. Notifications are sent when Snowflake predicts that spending will exceed the threshold, which is a percentage of the budget limit.

语法

<budget_name>!GET_NOTIFICATION_THRESHOLD();

返回

Returns a VARCHAR value containing the notification threshold percentage.

访问控制要求

自定义预算 调用此方法需要以下最低权限和角色:

  • Any instance role for the budget instance.
  • 对包含预算实例的数据库和架构的 USAGE 权限。

账户预算 调用此方法需要以下最低权限和角色:

For more information, see Budgets roles and privileges.

使用说明

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.

示例

Get the notification threshold for budget my_budget in schema budget_db.budget_schema:

CALL budget_db.budget_schema.my_budget!GET_NOTIFICATION_THRESHOLD();

Get the notification threshold for the account budget:

CALL SNOWFLAKE.LOCAL.ACCOUNT_ROOT_BUDGET!GET_NOTIFICATION_THRESHOLD();