1. Packages
  2. Snowflake
  3. API Docs
  4. ResourceMonitor
Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi

snowflake.ResourceMonitor

Explore with Pulumi AI

snowflake logo
Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    const monitor = new snowflake.ResourceMonitor("monitor", {
        creditQuota: 100,
        endTimestamp: "2021-12-07 00:00",
        frequency: "DAILY",
        notifyTriggers: [
            40,
            50,
        ],
        notifyUsers: [
            "USERONE",
            "USERTWO",
        ],
        startTimestamp: "2020-12-07 00:00",
        suspendImmediateTriggers: 90,
        suspendTriggers: 50,
    });
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    monitor = snowflake.ResourceMonitor("monitor",
        credit_quota=100,
        end_timestamp="2021-12-07 00:00",
        frequency="DAILY",
        notify_triggers=[
            40,
            50,
        ],
        notify_users=[
            "USERONE",
            "USERTWO",
        ],
        start_timestamp="2020-12-07 00:00",
        suspend_immediate_triggers=90,
        suspend_triggers=50)
    
    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{
    			CreditQuota:  pulumi.Int(100),
    			EndTimestamp: pulumi.String("2021-12-07 00:00"),
    			Frequency:    pulumi.String("DAILY"),
    			NotifyTriggers: pulumi.IntArray{
    				pulumi.Int(40),
    				pulumi.Int(50),
    			},
    			NotifyUsers: pulumi.StringArray{
    				pulumi.String("USERONE"),
    				pulumi.String("USERTWO"),
    			},
    			StartTimestamp:           pulumi.String("2020-12-07 00:00"),
    			SuspendImmediateTriggers: pulumi.IntArray(90),
    			SuspendTriggers:          pulumi.IntArray(50),
    		})
    		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()
        {
            CreditQuota = 100,
            EndTimestamp = "2021-12-07 00:00",
            Frequency = "DAILY",
            NotifyTriggers = new[]
            {
                40,
                50,
            },
            NotifyUsers = new[]
            {
                "USERONE",
                "USERTWO",
            },
            StartTimestamp = "2020-12-07 00:00",
            SuspendImmediateTriggers = 90,
            SuspendTriggers = 50,
        });
    
    });
    
    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()        
                .creditQuota(100)
                .endTimestamp("2021-12-07 00:00")
                .frequency("DAILY")
                .notifyTriggers(            
                    40,
                    50)
                .notifyUsers(            
                    "USERONE",
                    "USERTWO")
                .startTimestamp("2020-12-07 00:00")
                .suspendImmediateTriggers(90)
                .suspendTriggers(50)
                .build());
    
        }
    }
    
    resources:
      monitor:
        type: snowflake:ResourceMonitor
        properties:
          creditQuota: 100
          endTimestamp: 2021-12-07 00:00
          frequency: DAILY
          notifyTriggers:
            - 40
            - 50
          notifyUsers:
            - USERONE
            - USERTWO
          startTimestamp: 2020-12-07 00:00
          suspendImmediateTriggers: 90
          suspendTriggers: 50
    

    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.

    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:

    CreditQuota int
    The number of credits allocated monthly to the resource monitor.
    EndTimestamp 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.
    NotifyTriggers List<int>
    A list of percentage thresholds at which to send an alert to subscribed users.
    NotifyUsers List<string>
    Specifies the list of users to receive email notifications on resource monitors.
    SetForAccount bool
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    StartTimestamp string
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    SuspendImmediateTrigger int
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    SuspendImmediateTriggers List<int>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    SuspendTrigger int
    The number that represents the percentage threshold at which to suspend all warehouses.
    SuspendTriggers List<int>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    Warehouses List<string>
    A list of warehouses to apply the resource monitor to.
    CreditQuota int
    The number of credits allocated monthly to the resource monitor.
    EndTimestamp 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.
    NotifyTriggers []int
    A list of percentage thresholds at which to send an alert to subscribed users.
    NotifyUsers []string
    Specifies the list of users to receive email notifications on resource monitors.
    SetForAccount bool
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    StartTimestamp string
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    SuspendImmediateTrigger int
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    SuspendImmediateTriggers []int
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    SuspendTrigger int
    The number that represents the percentage threshold at which to suspend all warehouses.
    SuspendTriggers []int
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    Warehouses []string
    A list of warehouses to apply the resource monitor to.
    creditQuota Integer
    The number of credits allocated monthly to the resource monitor.
    endTimestamp 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.
    notifyTriggers List<Integer>
    A list of percentage thresholds at which to send an alert to subscribed users.
    notifyUsers List<String>
    Specifies the list of users to receive email notifications on resource monitors.
    setForAccount Boolean
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    startTimestamp String
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    suspendImmediateTrigger Integer
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspendImmediateTriggers List<Integer>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    suspendTrigger Integer
    The number that represents the percentage threshold at which to suspend all warehouses.
    suspendTriggers List<Integer>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    warehouses List<String>
    A list of warehouses to apply the resource monitor to.
    creditQuota number
    The number of credits allocated monthly to the resource monitor.
    endTimestamp 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.
    notifyTriggers number[]
    A list of percentage thresholds at which to send an alert to subscribed users.
    notifyUsers string[]
    Specifies the list of users to receive email notifications on resource monitors.
    setForAccount boolean
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    startTimestamp string
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    suspendImmediateTrigger number
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspendImmediateTriggers number[]
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    suspendTrigger number
    The number that represents the percentage threshold at which to suspend all warehouses.
    suspendTriggers number[]
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    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_account bool
    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_trigger int
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspend_immediate_triggers Sequence[int]
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    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.

    Deprecated: Use suspend_trigger instead

    warehouses Sequence[str]
    A list of warehouses to apply the resource monitor to.
    creditQuota Number
    The number of credits allocated monthly to the resource monitor.
    endTimestamp 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.
    notifyTriggers List<Number>
    A list of percentage thresholds at which to send an alert to subscribed users.
    notifyUsers List<String>
    Specifies the list of users to receive email notifications on resource monitors.
    setForAccount Boolean
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    startTimestamp String
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    suspendImmediateTrigger Number
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspendImmediateTriggers List<Number>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    suspendTrigger Number
    The number that represents the percentage threshold at which to suspend all warehouses.
    suspendTriggers List<Number>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    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.
    The following state arguments are supported:
    CreditQuota int
    The number of credits allocated monthly to the resource monitor.
    EndTimestamp 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.
    NotifyTriggers List<int>
    A list of percentage thresholds at which to send an alert to subscribed users.
    NotifyUsers List<string>
    Specifies the list of users to receive email notifications on resource monitors.
    SetForAccount bool
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    StartTimestamp string
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    SuspendImmediateTrigger int
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    SuspendImmediateTriggers List<int>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    SuspendTrigger int
    The number that represents the percentage threshold at which to suspend all warehouses.
    SuspendTriggers List<int>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    Warehouses List<string>
    A list of warehouses to apply the resource monitor to.
    CreditQuota int
    The number of credits allocated monthly to the resource monitor.
    EndTimestamp 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.
    NotifyTriggers []int
    A list of percentage thresholds at which to send an alert to subscribed users.
    NotifyUsers []string
    Specifies the list of users to receive email notifications on resource monitors.
    SetForAccount bool
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    StartTimestamp string
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    SuspendImmediateTrigger int
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    SuspendImmediateTriggers []int
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    SuspendTrigger int
    The number that represents the percentage threshold at which to suspend all warehouses.
    SuspendTriggers []int
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    Warehouses []string
    A list of warehouses to apply the resource monitor to.
    creditQuota Integer
    The number of credits allocated monthly to the resource monitor.
    endTimestamp 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.
    notifyTriggers List<Integer>
    A list of percentage thresholds at which to send an alert to subscribed users.
    notifyUsers List<String>
    Specifies the list of users to receive email notifications on resource monitors.
    setForAccount Boolean
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    startTimestamp String
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    suspendImmediateTrigger Integer
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspendImmediateTriggers List<Integer>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    suspendTrigger Integer
    The number that represents the percentage threshold at which to suspend all warehouses.
    suspendTriggers List<Integer>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    warehouses List<String>
    A list of warehouses to apply the resource monitor to.
    creditQuota number
    The number of credits allocated monthly to the resource monitor.
    endTimestamp 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.
    notifyTriggers number[]
    A list of percentage thresholds at which to send an alert to subscribed users.
    notifyUsers string[]
    Specifies the list of users to receive email notifications on resource monitors.
    setForAccount boolean
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    startTimestamp string
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    suspendImmediateTrigger number
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspendImmediateTriggers number[]
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    suspendTrigger number
    The number that represents the percentage threshold at which to suspend all warehouses.
    suspendTriggers number[]
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    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_account bool
    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_trigger int
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspend_immediate_triggers Sequence[int]
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    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.

    Deprecated: Use suspend_trigger instead

    warehouses Sequence[str]
    A list of warehouses to apply the resource monitor to.
    creditQuota Number
    The number of credits allocated monthly to the resource monitor.
    endTimestamp 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.
    notifyTriggers List<Number>
    A list of percentage thresholds at which to send an alert to subscribed users.
    notifyUsers List<String>
    Specifies the list of users to receive email notifications on resource monitors.
    setForAccount Boolean
    Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
    startTimestamp String
    The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
    suspendImmediateTrigger Number
    The number that represents the percentage threshold at which to immediately suspend all warehouses.
    suspendImmediateTriggers List<Number>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_immediate_trigger instead

    suspendTrigger Number
    The number that represents the percentage threshold at which to suspend all warehouses.
    suspendTriggers List<Number>
    A list of percentage thresholds at which to suspend all warehouses.

    Deprecated: Use suspend_trigger instead

    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.
    snowflake logo
    Snowflake v0.52.0 published on Thursday, Apr 18, 2024 by Pulumi