<budget_name>!GET_CYCLE_START_ACTION

Returns the user-defined action that is triggered when the budget cycle restarts.

See also:

<budget_name>!SET_CYCLE_START_ACTION, <budget_name>!REMOVE_CYCLE_START_ACTION

语法

<budget_name>!GET_CYCLE_START_ACTION()

返回

该方法会返回以下列:

Column nameData typeDescription
ACTION_UUIDVARCHARUnique identifier for the cycle-start action.
PROCEDURE_FQNVARCHARFully qualified name of the stored procedure.
PROCEDURE_ARGSARRAYArray of arguments passed to the stored procedure.
ADDED_TIMESTAMPTIMESTAMP_TZTime when the action was added to the budget, in local time zone.
LAST_TRIGGERED_TIMESTAMPTIMESTAMP_TZLast time the budget triggered the action, in UTC.

访问控制要求

  • 查看 自定义预算 的结果需要以下最低权限和角色:

    • 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 cycle-start action for budget my_budget in schema budget_db.sch1:

CALL budget_db.sch1.my_budget!GET_CYCLE_START_ACTION();

获取账户预算的周期开始操作:

CALL snowflake.local.account_root_budget!GET_CYCLE_START_ACTION();