snowflake.ResourceMonitor
Explore with Pulumi AI
Import
format is the resource monitor name
$ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example 'resourceMonitorName'
Create ResourceMonitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceMonitor(name: string, args?: ResourceMonitorArgs, opts?: CustomResourceOptions);
@overload
def ResourceMonitor(resource_name: str,
args: Optional[ResourceMonitorArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ResourceMonitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
credit_quota: Optional[int] = None,
end_timestamp: Optional[str] = None,
frequency: Optional[str] = None,
name: Optional[str] = None,
notify_triggers: Optional[Sequence[int]] = None,
notify_users: Optional[Sequence[str]] = None,
start_timestamp: Optional[str] = None,
suspend_immediate_trigger: Optional[int] = None,
suspend_trigger: Optional[int] = None)
func NewResourceMonitor(ctx *Context, name string, args *ResourceMonitorArgs, opts ...ResourceOption) (*ResourceMonitor, error)
public ResourceMonitor(string name, ResourceMonitorArgs? args = null, CustomResourceOptions? opts = null)
public ResourceMonitor(String name, ResourceMonitorArgs args)
public ResourceMonitor(String name, ResourceMonitorArgs args, CustomResourceOptions options)
type: snowflake:ResourceMonitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ResourceMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ResourceMonitorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ResourceMonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceMonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceMonitorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var resourceMonitorResource = new Snowflake.ResourceMonitor("resourceMonitorResource", new()
{
CreditQuota = 0,
EndTimestamp = "string",
Frequency = "string",
Name = "string",
NotifyTriggers = new[]
{
0,
},
NotifyUsers = new[]
{
"string",
},
StartTimestamp = "string",
SuspendImmediateTrigger = 0,
SuspendTrigger = 0,
});
example, err := snowflake.NewResourceMonitor(ctx, "resourceMonitorResource", &snowflake.ResourceMonitorArgs{
CreditQuota: pulumi.Int(0),
EndTimestamp: pulumi.String("string"),
Frequency: pulumi.String("string"),
Name: pulumi.String("string"),
NotifyTriggers: pulumi.IntArray{
pulumi.Int(0),
},
NotifyUsers: pulumi.StringArray{
pulumi.String("string"),
},
StartTimestamp: pulumi.String("string"),
SuspendImmediateTrigger: pulumi.Int(0),
SuspendTrigger: pulumi.Int(0),
})
var resourceMonitorResource = new ResourceMonitor("resourceMonitorResource", ResourceMonitorArgs.builder()
.creditQuota(0)
.endTimestamp("string")
.frequency("string")
.name("string")
.notifyTriggers(0)
.notifyUsers("string")
.startTimestamp("string")
.suspendImmediateTrigger(0)
.suspendTrigger(0)
.build());
resource_monitor_resource = snowflake.ResourceMonitor("resourceMonitorResource",
credit_quota=0,
end_timestamp="string",
frequency="string",
name="string",
notify_triggers=[0],
notify_users=["string"],
start_timestamp="string",
suspend_immediate_trigger=0,
suspend_trigger=0)
const resourceMonitorResource = new snowflake.ResourceMonitor("resourceMonitorResource", {
creditQuota: 0,
endTimestamp: "string",
frequency: "string",
name: "string",
notifyTriggers: [0],
notifyUsers: ["string"],
startTimestamp: "string",
suspendImmediateTrigger: 0,
suspendTrigger: 0,
});
type: snowflake:ResourceMonitor
properties:
creditQuota: 0
endTimestamp: string
frequency: string
name: string
notifyTriggers:
- 0
notifyUsers:
- string
startTimestamp: string
suspendImmediateTrigger: 0
suspendTrigger: 0
ResourceMonitor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourceMonitor resource accepts the following input properties:
- Credit
Quota int - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- End
Timestamp string - The date and time when the resource monitor suspends the assigned warehouses.
- Frequency string
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Name string
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Notify
Triggers List<int> - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- Notify
Users List<string> - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Suspend
Immediate intTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- Suspend
Trigger int - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- Credit
Quota int - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- End
Timestamp string - The date and time when the resource monitor suspends the assigned warehouses.
- Frequency string
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Name string
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Notify
Triggers []int - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- Notify
Users []string - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Suspend
Immediate intTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- Suspend
Trigger int - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit
Quota Integer - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end
Timestamp String - The date and time when the resource monitor suspends the assigned warehouses.
- frequency String
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - name String
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify
Triggers List<Integer> - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify
Users List<String> - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend
Immediate IntegerTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend
Trigger Integer - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit
Quota number - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end
Timestamp string - The date and time when the resource monitor suspends the assigned warehouses.
- frequency string
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - name string
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify
Triggers number[] - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify
Users string[] - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend
Immediate numberTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend
Trigger number - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit_
quota int - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end_
timestamp str - The date and time when the resource monitor suspends the assigned warehouses.
- frequency str
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - name str
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify_
triggers Sequence[int] - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify_
users Sequence[str] - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- start_
timestamp str - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend_
immediate_ inttrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend_
trigger int - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit
Quota Number - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end
Timestamp String - The date and time when the resource monitor suspends the assigned warehouses.
- frequency String
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - name String
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify
Triggers List<Number> - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify
Users List<String> - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend
Immediate NumberTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend
Trigger Number - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceMonitor resource produces the following output properties:
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Show
Outputs List<ResourceMonitor Show Output> - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Show
Outputs []ResourceMonitor Show Output - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- show
Outputs List<ResourceMonitor Show Output> - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- show
Outputs ResourceMonitor Show Output[] - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- id str
- The provider-assigned unique ID for this managed resource.
- show_
outputs Sequence[ResourceMonitor Show Output] - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- show
Outputs List<Property Map> - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor.
Look up Existing ResourceMonitor Resource
Get an existing ResourceMonitor resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ResourceMonitorState, opts?: CustomResourceOptions): ResourceMonitor
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credit_quota: Optional[int] = None,
end_timestamp: Optional[str] = None,
frequency: Optional[str] = None,
fully_qualified_name: Optional[str] = None,
name: Optional[str] = None,
notify_triggers: Optional[Sequence[int]] = None,
notify_users: Optional[Sequence[str]] = None,
show_outputs: Optional[Sequence[ResourceMonitorShowOutputArgs]] = None,
start_timestamp: Optional[str] = None,
suspend_immediate_trigger: Optional[int] = None,
suspend_trigger: Optional[int] = None) -> ResourceMonitor
func GetResourceMonitor(ctx *Context, name string, id IDInput, state *ResourceMonitorState, opts ...ResourceOption) (*ResourceMonitor, error)
public static ResourceMonitor Get(string name, Input<string> id, ResourceMonitorState? state, CustomResourceOptions? opts = null)
public static ResourceMonitor get(String name, Output<String> id, ResourceMonitorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Credit
Quota int - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- End
Timestamp string - The date and time when the resource monitor suspends the assigned warehouses.
- Frequency string
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Notify
Triggers List<int> - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- Notify
Users List<string> - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- Show
Outputs List<ResourceMonitor Show Output> - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor. - Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Suspend
Immediate intTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- Suspend
Trigger int - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- Credit
Quota int - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- End
Timestamp string - The date and time when the resource monitor suspends the assigned warehouses.
- Frequency string
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Notify
Triggers []int - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- Notify
Users []string - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- Show
Outputs []ResourceMonitor Show Output Args - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor. - Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - Suspend
Immediate intTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- Suspend
Trigger int - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit
Quota Integer - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end
Timestamp String - The date and time when the resource monitor suspends the assigned warehouses.
- frequency String
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify
Triggers List<Integer> - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify
Users List<String> - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- show
Outputs List<ResourceMonitor Show Output> - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor. - start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend
Immediate IntegerTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend
Trigger Integer - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit
Quota number - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end
Timestamp string - The date and time when the resource monitor suspends the assigned warehouses.
- frequency string
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- name string
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify
Triggers number[] - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify
Users string[] - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- show
Outputs ResourceMonitor Show Output[] - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor. - start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend
Immediate numberTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend
Trigger number - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit_
quota int - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end_
timestamp str - The date and time when the resource monitor suspends the assigned warehouses.
- frequency str
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- name str
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify_
triggers Sequence[int] - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify_
users Sequence[str] - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- show_
outputs Sequence[ResourceMonitor Show Output Args] - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor. - start_
timestamp str - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend_
immediate_ inttrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend_
trigger int - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- credit
Quota Number - The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
- end
Timestamp String - The date and time when the resource monitor suspends the assigned warehouses.
- frequency String
- The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive):
MONTHLY
|DAILY
|WEEKLY
|YEARLY
|NEVER
. If you set afrequency
for a resource monitor, you must also setstart_timestamp
. If you specifyNEVER
for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- notify
Triggers List<Number> - Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
- notify
Users List<String> - Specifies the list of users (their identifiers) to receive email notifications on resource monitors.
- show
Outputs List<Property Map> - Outputs the result of
SHOW RESOURCE MONITORS
for the given resource monitor. - start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a
start_timestamp
for a resource monitor, you must also setfrequency
. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter. - suspend
Immediate NumberTrigger - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
- suspend
Trigger Number - Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
Supporting Types
ResourceMonitorShowOutput, ResourceMonitorShowOutputArgs
- Comment string
- Created
On string - Credit
Quota double - End
Time string - Frequency string
- Level string
- Name string
- Owner string
- Remaining
Credits double - Start
Time string - Suspend
At int - Suspend
Immediate intAt - Used
Credits double
- Comment string
- Created
On string - Credit
Quota float64 - End
Time string - Frequency string
- Level string
- Name string
- Owner string
- Remaining
Credits float64 - Start
Time string - Suspend
At int - Suspend
Immediate intAt - Used
Credits float64
- comment String
- created
On String - credit
Quota Double - end
Time String - frequency String
- level String
- name String
- owner String
- remaining
Credits Double - start
Time String - suspend
At Integer - suspend
Immediate IntegerAt - used
Credits Double
- comment string
- created
On string - credit
Quota number - end
Time string - frequency string
- level string
- name string
- owner string
- remaining
Credits number - start
Time string - suspend
At number - suspend
Immediate numberAt - used
Credits number
- comment str
- created_
on str - credit_
quota float - end_
time str - frequency str
- level str
- name str
- owner str
- remaining_
credits float - start_
time str - suspend_
at int - suspend_
immediate_ intat - used_
credits float
- comment String
- created
On String - credit
Quota Number - end
Time String - frequency String
- level String
- name String
- owner String
- remaining
Credits Number - start
Time String - suspend
At Number - suspend
Immediate NumberAt - used
Credits Number
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.