<budget_name>!GET_CYCLE_START_ACTION¶
Returns the user-defined action that is triggered when the budget cycle restarts.
Syntax¶
<budget_name>!GET_CYCLE_START_ACTION()
Returns¶
The method returns the following columns:
Column name |
Data type |
Description |
|---|---|---|
ACTION_UUID |
VARCHAR |
Unique identifier for the cycle-start action. |
PROCEDURE_FQN |
VARCHAR |
Fully qualified name of the stored procedure. |
PROCEDURE_ARGS |
ARRAY |
Array of arguments passed to the stored procedure. |
ADDED_TIMESTAMP |
TIMESTAMP_TZ |
Time when the action was added to the budget, in local time zone. |
LAST_TRIGGERED_TIMESTAMP |
TIMESTAMP_TZ |
Last time the budget triggered the action, in UTC. |
Access control requirements¶
The following minimum privileges and roles are required to view results for custom budgets:
Any instance role for the budget instance.
USAGE privilege on the database and schema that contains the budget instance.
The following role is required to view results for the account budget:
Any application role for the account budget.
For more information, see Budgets roles and privileges.
Usage notes¶
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.
Examples¶
Get the cycle-start action for budget my_budget in schema budget_db.sch1:
CALL budget_db.sch1.my_budget!GET_CYCLE_START_ACTION();
Get the cycle-start action for the account budget:
CALL snowflake.local.account_root_budget!GET_CYCLE_START_ACTION();