snowflake.ResourceMonitor
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const monitor = new snowflake.ResourceMonitor("monitor", {
name: "monitor",
creditQuota: 100,
frequency: "DAILY",
startTimestamp: "2020-12-07 00:00",
endTimestamp: "2021-12-07 00:00",
notifyTriggers: [
40,
50,
],
suspendTriggers: 50,
suspendImmediateTriggers: 90,
notifyUsers: [
"USERONE",
"USERTWO",
],
});
import pulumi
import pulumi_snowflake as snowflake
monitor = snowflake.ResourceMonitor("monitor",
name="monitor",
credit_quota=100,
frequency="DAILY",
start_timestamp="2020-12-07 00:00",
end_timestamp="2021-12-07 00:00",
notify_triggers=[
40,
50,
],
suspend_triggers=50,
suspend_immediate_triggers=90,
notify_users=[
"USERONE",
"USERTWO",
])
package main
import (
"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := snowflake.NewResourceMonitor(ctx, "monitor", &snowflake.ResourceMonitorArgs{
Name: pulumi.String("monitor"),
CreditQuota: pulumi.Int(100),
Frequency: pulumi.String("DAILY"),
StartTimestamp: pulumi.String("2020-12-07 00:00"),
EndTimestamp: pulumi.String("2021-12-07 00:00"),
NotifyTriggers: pulumi.IntArray{
pulumi.Int(40),
pulumi.Int(50),
},
SuspendTriggers: pulumi.IntArray(50),
SuspendImmediateTriggers: pulumi.IntArray(90),
NotifyUsers: pulumi.StringArray{
pulumi.String("USERONE"),
pulumi.String("USERTWO"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Snowflake = Pulumi.Snowflake;
return await Deployment.RunAsync(() =>
{
var monitor = new Snowflake.ResourceMonitor("monitor", new()
{
Name = "monitor",
CreditQuota = 100,
Frequency = "DAILY",
StartTimestamp = "2020-12-07 00:00",
EndTimestamp = "2021-12-07 00:00",
NotifyTriggers = new[]
{
40,
50,
},
SuspendTriggers = 50,
SuspendImmediateTriggers = 90,
NotifyUsers = new[]
{
"USERONE",
"USERTWO",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.snowflake.ResourceMonitor;
import com.pulumi.snowflake.ResourceMonitorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var monitor = new ResourceMonitor("monitor", ResourceMonitorArgs.builder()
.name("monitor")
.creditQuota(100)
.frequency("DAILY")
.startTimestamp("2020-12-07 00:00")
.endTimestamp("2021-12-07 00:00")
.notifyTriggers(
40,
50)
.suspendTriggers(50)
.suspendImmediateTriggers(90)
.notifyUsers(
"USERONE",
"USERTWO")
.build());
}
}
resources:
monitor:
type: snowflake:ResourceMonitor
properties:
name: monitor
creditQuota: 100
frequency: DAILY
startTimestamp: 2020-12-07 00:00
endTimestamp: 2021-12-07 00:00
notifyTriggers:
- 40
- 50
suspendTriggers: 50
suspendImmediateTriggers: 90
notifyUsers:
- USERONE
- USERTWO
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,
set_for_account: Optional[bool] = None,
start_timestamp: Optional[str] = None,
suspend_immediate_trigger: Optional[int] = None,
suspend_immediate_triggers: Optional[Sequence[int]] = None,
suspend_trigger: Optional[int] = None,
suspend_triggers: Optional[Sequence[int]] = None,
warehouses: Optional[Sequence[str]] = 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",
},
SetForAccount = false,
StartTimestamp = "string",
SuspendImmediateTrigger = 0,
SuspendTrigger = 0,
Warehouses = new[]
{
"string",
},
});
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"),
},
SetForAccount: pulumi.Bool(false),
StartTimestamp: pulumi.String("string"),
SuspendImmediateTrigger: pulumi.Int(0),
SuspendTrigger: pulumi.Int(0),
Warehouses: pulumi.StringArray{
pulumi.String("string"),
},
})
var resourceMonitorResource = new ResourceMonitor("resourceMonitorResource", ResourceMonitorArgs.builder()
.creditQuota(0)
.endTimestamp("string")
.frequency("string")
.name("string")
.notifyTriggers(0)
.notifyUsers("string")
.setForAccount(false)
.startTimestamp("string")
.suspendImmediateTrigger(0)
.suspendTrigger(0)
.warehouses("string")
.build());
resource_monitor_resource = snowflake.ResourceMonitor("resourceMonitorResource",
credit_quota=0,
end_timestamp="string",
frequency="string",
name="string",
notify_triggers=[0],
notify_users=["string"],
set_for_account=False,
start_timestamp="string",
suspend_immediate_trigger=0,
suspend_trigger=0,
warehouses=["string"])
const resourceMonitorResource = new snowflake.ResourceMonitor("resourceMonitorResource", {
creditQuota: 0,
endTimestamp: "string",
frequency: "string",
name: "string",
notifyTriggers: [0],
notifyUsers: ["string"],
setForAccount: false,
startTimestamp: "string",
suspendImmediateTrigger: 0,
suspendTrigger: 0,
warehouses: ["string"],
});
type: snowflake:ResourceMonitor
properties:
creditQuota: 0
endTimestamp: string
frequency: string
name: string
notifyTriggers:
- 0
notifyUsers:
- string
setForAccount: false
startTimestamp: string
suspendImmediateTrigger: 0
suspendTrigger: 0
warehouses:
- string
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
The ResourceMonitor resource accepts the following input properties:
- Credit
Quota int - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- Name string
- Identifier for the resource monitor; must be unique for your account.
- Notify
Triggers List<int> - A list of percentage thresholds at which to send an alert to subscribed users.
- Notify
Users List<string> - Specifies the list of users to receive email notifications on resource monitors.
- Set
For boolAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- Suspend
Immediate intTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- Suspend
Immediate List<int>Triggers - A list of percentage thresholds at which to suspend all warehouses.
- Suspend
Trigger int - The number that represents the percentage threshold at which to suspend all warehouses.
- Suspend
Triggers List<int> - A list of percentage thresholds at which to suspend all warehouses.
- Warehouses List<string>
- A list of warehouses to apply the resource monitor to.
- Credit
Quota int - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- Name string
- Identifier for the resource monitor; must be unique for your account.
- Notify
Triggers []int - A list of percentage thresholds at which to send an alert to subscribed users.
- Notify
Users []string - Specifies the list of users to receive email notifications on resource monitors.
- Set
For boolAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- Suspend
Immediate intTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- Suspend
Immediate []intTriggers - A list of percentage thresholds at which to suspend all warehouses.
- Suspend
Trigger int - The number that represents the percentage threshold at which to suspend all warehouses.
- Suspend
Triggers []int - A list of percentage thresholds at which to suspend all warehouses.
- Warehouses []string
- A list of warehouses to apply the resource monitor to.
- credit
Quota Integer - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name String
- Identifier for the resource monitor; must be unique for your account.
- notify
Triggers List<Integer> - A list of percentage thresholds at which to send an alert to subscribed users.
- notify
Users List<String> - Specifies the list of users to receive email notifications on resource monitors.
- set
For BooleanAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend
Immediate IntegerTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend
Immediate List<Integer>Triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend
Trigger Integer - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend
Triggers List<Integer> - A list of percentage thresholds at which to suspend all warehouses.
- warehouses List<String>
- A list of warehouses to apply the resource monitor to.
- credit
Quota number - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name string
- Identifier for the resource monitor; must be unique for your account.
- notify
Triggers number[] - A list of percentage thresholds at which to send an alert to subscribed users.
- notify
Users string[] - Specifies the list of users to receive email notifications on resource monitors.
- set
For booleanAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend
Immediate numberTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend
Immediate number[]Triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend
Trigger number - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend
Triggers number[] - A list of percentage thresholds at which to suspend all warehouses.
- warehouses string[]
- A list of warehouses to apply the resource monitor to.
- credit_
quota int - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name str
- Identifier for the resource monitor; must be unique for your account.
- notify_
triggers Sequence[int] - A list of percentage thresholds at which to send an alert to subscribed users.
- notify_
users Sequence[str] - Specifies the list of users to receive email notifications on resource monitors.
- set_
for_ boolaccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start_
timestamp str - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend_
immediate_ inttrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend_
immediate_ Sequence[int]triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend_
trigger int - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend_
triggers Sequence[int] - A list of percentage thresholds at which to suspend all warehouses.
- warehouses Sequence[str]
- A list of warehouses to apply the resource monitor to.
- credit
Quota Number - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name String
- Identifier for the resource monitor; must be unique for your account.
- notify
Triggers List<Number> - A list of percentage thresholds at which to send an alert to subscribed users.
- notify
Users List<String> - Specifies the list of users to receive email notifications on resource monitors.
- set
For BooleanAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend
Immediate NumberTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend
Immediate List<Number>Triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend
Trigger Number - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend
Triggers List<Number> - A list of percentage thresholds at which to suspend all warehouses.
- warehouses List<String>
- A list of warehouses to apply the resource monitor to.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceMonitor resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
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,
name: Optional[str] = None,
notify_triggers: Optional[Sequence[int]] = None,
notify_users: Optional[Sequence[str]] = None,
set_for_account: Optional[bool] = None,
start_timestamp: Optional[str] = None,
suspend_immediate_trigger: Optional[int] = None,
suspend_immediate_triggers: Optional[Sequence[int]] = None,
suspend_trigger: Optional[int] = None,
suspend_triggers: Optional[Sequence[int]] = None,
warehouses: Optional[Sequence[str]] = 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 monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- Name string
- Identifier for the resource monitor; must be unique for your account.
- Notify
Triggers List<int> - A list of percentage thresholds at which to send an alert to subscribed users.
- Notify
Users List<string> - Specifies the list of users to receive email notifications on resource monitors.
- Set
For boolAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- Suspend
Immediate intTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- Suspend
Immediate List<int>Triggers - A list of percentage thresholds at which to suspend all warehouses.
- Suspend
Trigger int - The number that represents the percentage threshold at which to suspend all warehouses.
- Suspend
Triggers List<int> - A list of percentage thresholds at which to suspend all warehouses.
- Warehouses List<string>
- A list of warehouses to apply the resource monitor to.
- Credit
Quota int - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- Name string
- Identifier for the resource monitor; must be unique for your account.
- Notify
Triggers []int - A list of percentage thresholds at which to send an alert to subscribed users.
- Notify
Users []string - Specifies the list of users to receive email notifications on resource monitors.
- Set
For boolAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- Start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- Suspend
Immediate intTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- Suspend
Immediate []intTriggers - A list of percentage thresholds at which to suspend all warehouses.
- Suspend
Trigger int - The number that represents the percentage threshold at which to suspend all warehouses.
- Suspend
Triggers []int - A list of percentage thresholds at which to suspend all warehouses.
- Warehouses []string
- A list of warehouses to apply the resource monitor to.
- credit
Quota Integer - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name String
- Identifier for the resource monitor; must be unique for your account.
- notify
Triggers List<Integer> - A list of percentage thresholds at which to send an alert to subscribed users.
- notify
Users List<String> - Specifies the list of users to receive email notifications on resource monitors.
- set
For BooleanAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend
Immediate IntegerTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend
Immediate List<Integer>Triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend
Trigger Integer - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend
Triggers List<Integer> - A list of percentage thresholds at which to suspend all warehouses.
- warehouses List<String>
- A list of warehouses to apply the resource monitor to.
- credit
Quota number - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name string
- Identifier for the resource monitor; must be unique for your account.
- notify
Triggers number[] - A list of percentage thresholds at which to send an alert to subscribed users.
- notify
Users string[] - Specifies the list of users to receive email notifications on resource monitors.
- set
For booleanAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start
Timestamp string - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend
Immediate numberTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend
Immediate number[]Triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend
Trigger number - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend
Triggers number[] - A list of percentage thresholds at which to suspend all warehouses.
- warehouses string[]
- A list of warehouses to apply the resource monitor to.
- credit_
quota int - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name str
- Identifier for the resource monitor; must be unique for your account.
- notify_
triggers Sequence[int] - A list of percentage thresholds at which to send an alert to subscribed users.
- notify_
users Sequence[str] - Specifies the list of users to receive email notifications on resource monitors.
- set_
for_ boolaccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start_
timestamp str - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend_
immediate_ inttrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend_
immediate_ Sequence[int]triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend_
trigger int - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend_
triggers Sequence[int] - A list of percentage thresholds at which to suspend all warehouses.
- warehouses Sequence[str]
- A list of warehouses to apply the resource monitor to.
- credit
Quota Number - The number of credits allocated monthly to the resource monitor.
- 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. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
- name String
- Identifier for the resource monitor; must be unique for your account.
- notify
Triggers List<Number> - A list of percentage thresholds at which to send an alert to subscribed users.
- notify
Users List<String> - Specifies the list of users to receive email notifications on resource monitors.
- set
For BooleanAccount - Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
- start
Timestamp String - The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
- suspend
Immediate NumberTrigger - The number that represents the percentage threshold at which to immediately suspend all warehouses.
- suspend
Immediate List<Number>Triggers - A list of percentage thresholds at which to suspend all warehouses.
- suspend
Trigger Number - The number that represents the percentage threshold at which to suspend all warehouses.
- suspend
Triggers List<Number> - A list of percentage thresholds at which to suspend all warehouses.
- warehouses List<String>
- A list of warehouses to apply the resource monitor to.
Import
format is the resource monitor name
$ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example 'resourceMonitorName'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.