RESOURCE MONITOR
Config path: /resource_monitor.yaml
Example:
test_res_monitor_1:
credit_quota: 125
frequency: monthly
triggers:
50: notify
75: notify
100: suspend
110: suspend_immediateSchema
{key} (ident) - name of resource monitor
{value} (dict)
credit_quota (int) - he number of credits allocated to the resource monitor per frequency interval
frequency (str) -
MONTHLY | DAILY | WEEKLY | YEARLY | NEVERtriggers (dict)
{key} (int) - quota threshold in percent
{value) (str) - action to take when threshold was reached
SUSPEND | SUSPEND_IMMEDIATE | NOTIFY
Usage notes
Setting custom
START_TIMESTAMPandEND_TIMESTAMPis currently not supported, since it will cause your config to depend on wall clock time.START_TIMESTAMPis automatically set toIMMEDIATELYon creation and on change of frequency of resource monitor.Comments for resource monitors are not supported by Snowflake.
Links
Last updated