Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Snowflake

v0.2.1 published on Monday, Sep 27, 2021 by Pulumi

ResourceMonitor

Import

 $ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var monitor = new Snowflake.ResourceMonitor("monitor", new Snowflake.ResourceMonitorArgs
        {
            CreditQuota = 100,
            EndTimestamp = "2021-12-07 00:00",
            Frequency = "DAILY",
            NotifyTriggers = 
            {
                40,
            },
            StartTimestamp = "2020-12-07 00:00",
            SuspendImmediateTriggers = 
            {
                90,
            },
            SuspendTriggers = 
            {
                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),
			},
			StartTimestamp: pulumi.String("2020-12-07 00:00"),
			SuspendImmediateTriggers: pulumi.IntArray{
				pulumi.Int(90),
			},
			SuspendTriggers: pulumi.IntArray{
				pulumi.Int(50),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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],
    start_timestamp="2020-12-07 00:00",
    suspend_immediate_triggers=[90],
    suspend_triggers=[50])
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],
    startTimestamp: "2020-12-07 00:00",
    suspendImmediateTriggers: [90],
    suspendTriggers: [50],
});

Create a ResourceMonitor Resource

new ResourceMonitor(name: string, args?: ResourceMonitorArgs, opts?: CustomResourceOptions);
@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,
                    start_timestamp: Optional[str] = None,
                    suspend_immediate_triggers: Optional[Sequence[int]] = None,
                    suspend_triggers: Optional[Sequence[int]] = None)
@overload
def ResourceMonitor(resource_name: str,
                    args: Optional[ResourceMonitorArgs] = None,
                    opts: Optional[ResourceOptions] = None)
func NewResourceMonitor(ctx *Context, name string, args *ResourceMonitorArgs, opts ...ResourceOption) (*ResourceMonitor, error)
public ResourceMonitor(string name, ResourceMonitorArgs? args = null, CustomResourceOptions? opts = null)
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.

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.
StartTimestamp string
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
SuspendImmediateTriggers List<int>
A list of percentage thresholds at which to immediately suspend all warehouses.
SuspendTriggers List<int>
A list of percentage thresholds at which to suspend all warehouses.
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.
StartTimestamp string
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
SuspendImmediateTriggers []int
A list of percentage thresholds at which to immediately suspend all warehouses.
SuspendTriggers []int
A list of percentage thresholds at which to suspend all warehouses.
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.
startTimestamp string
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
suspendImmediateTriggers number[]
A list of percentage thresholds at which to immediately suspend all warehouses.
suspendTriggers number[]
A list of percentage thresholds at which to suspend all warehouses.
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.
start_timestamp str
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
suspend_immediate_triggers Sequence[int]
A list of percentage thresholds at which to immediately suspend all warehouses.
suspend_triggers Sequence[int]
A list of percentage thresholds at which to suspend all warehouses.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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,
        start_timestamp: Optional[str] = None,
        suspend_immediate_triggers: Optional[Sequence[int]] = None,
        suspend_triggers: Optional[Sequence[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)
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.

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.
StartTimestamp string
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
SuspendImmediateTriggers List<int>
A list of percentage thresholds at which to immediately suspend all warehouses.
SuspendTriggers List<int>
A list of percentage thresholds at which to suspend all warehouses.
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.
StartTimestamp string
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
SuspendImmediateTriggers []int
A list of percentage thresholds at which to immediately suspend all warehouses.
SuspendTriggers []int
A list of percentage thresholds at which to suspend all warehouses.
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.
startTimestamp string
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
suspendImmediateTriggers number[]
A list of percentage thresholds at which to immediately suspend all warehouses.
suspendTriggers number[]
A list of percentage thresholds at which to suspend all warehouses.
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.
start_timestamp str
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
suspend_immediate_triggers Sequence[int]
A list of percentage thresholds at which to immediately suspend all warehouses.
suspend_triggers Sequence[int]
A list of percentage thresholds at which to suspend all warehouses.

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.