1. Registry
  2. Packages
  3. Google Cloud (GCP)
  4. API Docs
  5. monitoring
  6. Snooze
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi

    A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.

    Note: Monitoring Snoozes cannot be deleted from the Google Cloud Platform. Destroying a Terraform-managed Snooze will cancel the snooze and remove it from state but will not delete the resource from the project.

    To get more information about Snooze, see:

    Example Usage

    Monitoring Snooze Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const alertPolicy = new gcp.monitoring.AlertPolicy("alert_policy", {
        displayName: "My Alert Policy",
        combiner: "OR",
        conditions: [{
            displayName: "test condition",
            conditionThreshold: {
                filter: "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"",
                duration: "60s",
                comparison: "COMPARISON_GT",
                aggregations: [{
                    alignmentPeriod: "60s",
                    perSeriesAligner: "ALIGN_RATE",
                }],
            },
        }],
    });
    const snooze = new gcp.monitoring.Snooze("snooze", {
        displayName: "My Snooze",
        interval: {
            startTime: "2024-02-03T07:44:12Z",
            endTime: "2024-02-05T07:44:12Z",
        },
        criteria: {
            policies: [alertPolicy.id],
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    alert_policy = gcp.monitoring.AlertPolicy("alert_policy",
        display_name="My Alert Policy",
        combiner="OR",
        conditions=[{
            "display_name": "test condition",
            "condition_threshold": {
                "filter": "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"",
                "duration": "60s",
                "comparison": "COMPARISON_GT",
                "aggregations": [{
                    "alignment_period": "60s",
                    "per_series_aligner": "ALIGN_RATE",
                }],
            },
        }])
    snooze = gcp.monitoring.Snooze("snooze",
        display_name="My Snooze",
        interval={
            "start_time": "2024-02-03T07:44:12Z",
            "end_time": "2024-02-05T07:44:12Z",
        },
        criteria={
            "policies": [alert_policy.id],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/monitoring"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		alertPolicy, err := monitoring.NewAlertPolicy(ctx, "alert_policy", &monitoring.AlertPolicyArgs{
    			DisplayName: pulumi.String("My Alert Policy"),
    			Combiner:    pulumi.String("OR"),
    			Conditions: monitoring.AlertPolicyConditionArray{
    				&monitoring.AlertPolicyConditionArgs{
    					DisplayName: pulumi.String("test condition"),
    					ConditionThreshold: &monitoring.AlertPolicyConditionConditionThresholdArgs{
    						Filter:     pulumi.String("metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\""),
    						Duration:   pulumi.String("60s"),
    						Comparison: pulumi.String("COMPARISON_GT"),
    						Aggregations: monitoring.AlertPolicyConditionConditionThresholdAggregationArray{
    							&monitoring.AlertPolicyConditionConditionThresholdAggregationArgs{
    								AlignmentPeriod:  pulumi.String("60s"),
    								PerSeriesAligner: pulumi.String("ALIGN_RATE"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = monitoring.NewSnooze(ctx, "snooze", &monitoring.SnoozeArgs{
    			DisplayName: pulumi.String("My Snooze"),
    			Interval: &monitoring.SnoozeIntervalArgs{
    				StartTime: pulumi.String("2024-02-03T07:44:12Z"),
    				EndTime:   pulumi.String("2024-02-05T07:44:12Z"),
    			},
    			Criteria: &monitoring.SnoozeCriteriaArgs{
    				Policies: pulumi.StringArray{
    					alertPolicy.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var alertPolicy = new Gcp.Monitoring.AlertPolicy("alert_policy", new()
        {
            DisplayName = "My Alert Policy",
            Combiner = "OR",
            Conditions = new[]
            {
                new Gcp.Monitoring.Inputs.AlertPolicyConditionArgs
                {
                    DisplayName = "test condition",
                    ConditionThreshold = new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdArgs
                    {
                        Filter = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"",
                        Duration = "60s",
                        Comparison = "COMPARISON_GT",
                        Aggregations = new[]
                        {
                            new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdAggregationArgs
                            {
                                AlignmentPeriod = "60s",
                                PerSeriesAligner = "ALIGN_RATE",
                            },
                        },
                    },
                },
            },
        });
    
        var snooze = new Gcp.Monitoring.Snooze("snooze", new()
        {
            DisplayName = "My Snooze",
            Interval = new Gcp.Monitoring.Inputs.SnoozeIntervalArgs
            {
                StartTime = "2024-02-03T07:44:12Z",
                EndTime = "2024-02-05T07:44:12Z",
            },
            Criteria = new Gcp.Monitoring.Inputs.SnoozeCriteriaArgs
            {
                Policies = new[]
                {
                    alertPolicy.Id,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.monitoring.AlertPolicy;
    import com.pulumi.gcp.monitoring.AlertPolicyArgs;
    import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionArgs;
    import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionThresholdArgs;
    import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionThresholdAggregationArgs;
    import com.pulumi.gcp.monitoring.Snooze;
    import com.pulumi.gcp.monitoring.SnoozeArgs;
    import com.pulumi.gcp.monitoring.inputs.SnoozeIntervalArgs;
    import com.pulumi.gcp.monitoring.inputs.SnoozeCriteriaArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertPolicy = new AlertPolicy("alertPolicy", AlertPolicyArgs.builder()
                .displayName("My Alert Policy")
                .combiner("OR")
                .conditions(AlertPolicyConditionArgs.builder()
                    .displayName("test condition")
                    .conditionThreshold(AlertPolicyConditionConditionThresholdArgs.builder()
                        .filter("metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"")
                        .duration("60s")
                        .comparison("COMPARISON_GT")
                        .aggregations(AlertPolicyConditionConditionThresholdAggregationArgs.builder()
                            .alignmentPeriod("60s")
                            .perSeriesAligner("ALIGN_RATE")
                            .build())
                        .build())
                    .build())
                .build());
    
            var snooze = new Snooze("snooze", SnoozeArgs.builder()
                .displayName("My Snooze")
                .interval(SnoozeIntervalArgs.builder()
                    .startTime("2024-02-03T07:44:12Z")
                    .endTime("2024-02-05T07:44:12Z")
                    .build())
                .criteria(SnoozeCriteriaArgs.builder()
                    .policies(alertPolicy.id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      alertPolicy:
        type: gcp:monitoring:AlertPolicy
        name: alert_policy
        properties:
          displayName: My Alert Policy
          combiner: OR
          conditions:
            - displayName: test condition
              conditionThreshold:
                filter: metric.type="compute.googleapis.com/instance/disk/write_bytes_count" AND resource.type="gce_instance"
                duration: 60s
                comparison: COMPARISON_GT
                aggregations:
                  - alignmentPeriod: 60s
                    perSeriesAligner: ALIGN_RATE
      snooze:
        type: gcp:monitoring:Snooze
        properties:
          displayName: My Snooze
          interval:
            startTime: 2024-02-03T07:44:12Z
            endTime: 2024-02-05T07:44:12Z
          criteria:
            policies:
              - ${alertPolicy.id}
    
    terraform {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    resource "gcp_monitoring_alert_policy" "alert_policy" {
      lifecycle {
        create_before_destroy = true
      }
      display_name = "My Alert Policy"
      combiner     = "OR"
      conditions {
        display_name = "test condition"
        condition_threshold = {
          filter     = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\""
          duration   = "60s"
          comparison = "COMPARISON_GT"
          aggregations = [{
            alignment_period   = "60s"
            per_series_aligner = "ALIGN_RATE"
          }]
        }
      }
    }
    resource "gcp_monitoring_snooze" "snooze" {
      lifecycle {
        create_before_destroy = true
      }
      display_name = "My Snooze"
      interval = {
        start_time = "2024-02-03T07:44:12Z"
        end_time   = "2024-02-05T07:44:12Z"
      }
      criteria = {
        policies = [gcp_monitoring_alert_policy.alert_policy.id]
      }
    }
    

    Monitoring Snooze Filter

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const alertPolicy = new gcp.monitoring.AlertPolicy("alert_policy", {
        displayName: "My Alert Policy",
        combiner: "OR",
        conditions: [{
            displayName: "test condition",
            conditionThreshold: {
                filter: "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"",
                duration: "60s",
                comparison: "COMPARISON_GT",
                aggregations: [{
                    alignmentPeriod: "60s",
                    perSeriesAligner: "ALIGN_RATE",
                }],
            },
        }],
    });
    const snooze = new gcp.monitoring.Snooze("snooze", {
        displayName: "My Snooze",
        interval: {
            startTime: "2024-02-03T07:44:12Z",
            endTime: "2024-02-05T07:44:12Z",
        },
        criteria: {
            policies: [alertPolicy.id],
            filter: "resource.labels.instance_id=\"1234567890\"",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    alert_policy = gcp.monitoring.AlertPolicy("alert_policy",
        display_name="My Alert Policy",
        combiner="OR",
        conditions=[{
            "display_name": "test condition",
            "condition_threshold": {
                "filter": "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"",
                "duration": "60s",
                "comparison": "COMPARISON_GT",
                "aggregations": [{
                    "alignment_period": "60s",
                    "per_series_aligner": "ALIGN_RATE",
                }],
            },
        }])
    snooze = gcp.monitoring.Snooze("snooze",
        display_name="My Snooze",
        interval={
            "start_time": "2024-02-03T07:44:12Z",
            "end_time": "2024-02-05T07:44:12Z",
        },
        criteria={
            "policies": [alert_policy.id],
            "filter": "resource.labels.instance_id=\"1234567890\"",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/monitoring"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		alertPolicy, err := monitoring.NewAlertPolicy(ctx, "alert_policy", &monitoring.AlertPolicyArgs{
    			DisplayName: pulumi.String("My Alert Policy"),
    			Combiner:    pulumi.String("OR"),
    			Conditions: monitoring.AlertPolicyConditionArray{
    				&monitoring.AlertPolicyConditionArgs{
    					DisplayName: pulumi.String("test condition"),
    					ConditionThreshold: &monitoring.AlertPolicyConditionConditionThresholdArgs{
    						Filter:     pulumi.String("metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\""),
    						Duration:   pulumi.String("60s"),
    						Comparison: pulumi.String("COMPARISON_GT"),
    						Aggregations: monitoring.AlertPolicyConditionConditionThresholdAggregationArray{
    							&monitoring.AlertPolicyConditionConditionThresholdAggregationArgs{
    								AlignmentPeriod:  pulumi.String("60s"),
    								PerSeriesAligner: pulumi.String("ALIGN_RATE"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = monitoring.NewSnooze(ctx, "snooze", &monitoring.SnoozeArgs{
    			DisplayName: pulumi.String("My Snooze"),
    			Interval: &monitoring.SnoozeIntervalArgs{
    				StartTime: pulumi.String("2024-02-03T07:44:12Z"),
    				EndTime:   pulumi.String("2024-02-05T07:44:12Z"),
    			},
    			Criteria: &monitoring.SnoozeCriteriaArgs{
    				Policies: pulumi.StringArray{
    					alertPolicy.ID(),
    				},
    				Filter: pulumi.String("resource.labels.instance_id=\"1234567890\""),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var alertPolicy = new Gcp.Monitoring.AlertPolicy("alert_policy", new()
        {
            DisplayName = "My Alert Policy",
            Combiner = "OR",
            Conditions = new[]
            {
                new Gcp.Monitoring.Inputs.AlertPolicyConditionArgs
                {
                    DisplayName = "test condition",
                    ConditionThreshold = new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdArgs
                    {
                        Filter = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"",
                        Duration = "60s",
                        Comparison = "COMPARISON_GT",
                        Aggregations = new[]
                        {
                            new Gcp.Monitoring.Inputs.AlertPolicyConditionConditionThresholdAggregationArgs
                            {
                                AlignmentPeriod = "60s",
                                PerSeriesAligner = "ALIGN_RATE",
                            },
                        },
                    },
                },
            },
        });
    
        var snooze = new Gcp.Monitoring.Snooze("snooze", new()
        {
            DisplayName = "My Snooze",
            Interval = new Gcp.Monitoring.Inputs.SnoozeIntervalArgs
            {
                StartTime = "2024-02-03T07:44:12Z",
                EndTime = "2024-02-05T07:44:12Z",
            },
            Criteria = new Gcp.Monitoring.Inputs.SnoozeCriteriaArgs
            {
                Policies = new[]
                {
                    alertPolicy.Id,
                },
                Filter = "resource.labels.instance_id=\"1234567890\"",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.monitoring.AlertPolicy;
    import com.pulumi.gcp.monitoring.AlertPolicyArgs;
    import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionArgs;
    import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionThresholdArgs;
    import com.pulumi.gcp.monitoring.inputs.AlertPolicyConditionConditionThresholdAggregationArgs;
    import com.pulumi.gcp.monitoring.Snooze;
    import com.pulumi.gcp.monitoring.SnoozeArgs;
    import com.pulumi.gcp.monitoring.inputs.SnoozeIntervalArgs;
    import com.pulumi.gcp.monitoring.inputs.SnoozeCriteriaArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 alertPolicy = new AlertPolicy("alertPolicy", AlertPolicyArgs.builder()
                .displayName("My Alert Policy")
                .combiner("OR")
                .conditions(AlertPolicyConditionArgs.builder()
                    .displayName("test condition")
                    .conditionThreshold(AlertPolicyConditionConditionThresholdArgs.builder()
                        .filter("metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\"")
                        .duration("60s")
                        .comparison("COMPARISON_GT")
                        .aggregations(AlertPolicyConditionConditionThresholdAggregationArgs.builder()
                            .alignmentPeriod("60s")
                            .perSeriesAligner("ALIGN_RATE")
                            .build())
                        .build())
                    .build())
                .build());
    
            var snooze = new Snooze("snooze", SnoozeArgs.builder()
                .displayName("My Snooze")
                .interval(SnoozeIntervalArgs.builder()
                    .startTime("2024-02-03T07:44:12Z")
                    .endTime("2024-02-05T07:44:12Z")
                    .build())
                .criteria(SnoozeCriteriaArgs.builder()
                    .policies(alertPolicy.id())
                    .filter("resource.labels.instance_id=\"1234567890\"")
                    .build())
                .build());
    
        }
    }
    
    resources:
      alertPolicy:
        type: gcp:monitoring:AlertPolicy
        name: alert_policy
        properties:
          displayName: My Alert Policy
          combiner: OR
          conditions:
            - displayName: test condition
              conditionThreshold:
                filter: metric.type="compute.googleapis.com/instance/disk/write_bytes_count" AND resource.type="gce_instance"
                duration: 60s
                comparison: COMPARISON_GT
                aggregations:
                  - alignmentPeriod: 60s
                    perSeriesAligner: ALIGN_RATE
      snooze:
        type: gcp:monitoring:Snooze
        properties:
          displayName: My Snooze
          interval:
            startTime: 2024-02-03T07:44:12Z
            endTime: 2024-02-05T07:44:12Z
          criteria:
            policies:
              - ${alertPolicy.id}
            filter: resource.labels.instance_id="1234567890"
    
    terraform {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    resource "gcp_monitoring_alert_policy" "alert_policy" {
      lifecycle {
        create_before_destroy = true
      }
      display_name = "My Alert Policy"
      combiner     = "OR"
      conditions {
        display_name = "test condition"
        condition_threshold = {
          filter     = "metric.type=\"compute.googleapis.com/instance/disk/write_bytes_count\" AND resource.type=\"gce_instance\""
          duration   = "60s"
          comparison = "COMPARISON_GT"
          aggregations = [{
            alignment_period   = "60s"
            per_series_aligner = "ALIGN_RATE"
          }]
        }
      }
    }
    resource "gcp_monitoring_snooze" "snooze" {
      lifecycle {
        create_before_destroy = true
      }
      display_name = "My Snooze"
      interval = {
        start_time = "2024-02-03T07:44:12Z"
        end_time   = "2024-02-05T07:44:12Z"
      }
      criteria = {
        policies = [gcp_monitoring_alert_policy.alert_policy.id]
        filter   = "resource.labels.instance_id=\"1234567890\""
      }
    }
    

    Create Snooze Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Snooze(name: string, args: SnoozeArgs, opts?: CustomResourceOptions);
    @overload
    def Snooze(resource_name: str,
               args: SnoozeArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Snooze(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               criteria: Optional[SnoozeCriteriaArgs] = None,
               display_name: Optional[str] = None,
               interval: Optional[SnoozeIntervalArgs] = None,
               project: Optional[str] = None)
    func NewSnooze(ctx *Context, name string, args SnoozeArgs, opts ...ResourceOption) (*Snooze, error)
    public Snooze(string name, SnoozeArgs args, CustomResourceOptions? opts = null)
    public Snooze(String name, SnoozeArgs args)
    public Snooze(String name, SnoozeArgs args, CustomResourceOptions options)
    
    type: gcp:monitoring:Snooze
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_monitoring_snooze" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SnoozeArgs
    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 SnoozeArgs
    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 SnoozeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SnoozeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SnoozeArgs
    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 snoozeResource = new Gcp.Monitoring.Snooze("snoozeResource", new()
    {
        Criteria = new Gcp.Monitoring.Inputs.SnoozeCriteriaArgs
        {
            Filter = "string",
            Policies = new[]
            {
                "string",
            },
        },
        DisplayName = "string",
        Interval = new Gcp.Monitoring.Inputs.SnoozeIntervalArgs
        {
            EndTime = "string",
            StartTime = "string",
        },
        Project = "string",
    });
    
    example, err := monitoring.NewSnooze(ctx, "snoozeResource", &monitoring.SnoozeArgs{
    	Criteria: &monitoring.SnoozeCriteriaArgs{
    		Filter: pulumi.String("string"),
    		Policies: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	DisplayName: pulumi.String("string"),
    	Interval: &monitoring.SnoozeIntervalArgs{
    		EndTime:   pulumi.String("string"),
    		StartTime: pulumi.String("string"),
    	},
    	Project: pulumi.String("string"),
    })
    
    resource "gcp_monitoring_snooze" "snoozeResource" {
      lifecycle {
        create_before_destroy = true
      }
      criteria = {
        filter   = "string"
        policies = ["string"]
      }
      display_name = "string"
      interval = {
        end_time   = "string"
        start_time = "string"
      }
      project = "string"
    }
    
    var snoozeResource = new Snooze("snoozeResource", SnoozeArgs.builder()
        .criteria(SnoozeCriteriaArgs.builder()
            .filter("string")
            .policies("string")
            .build())
        .displayName("string")
        .interval(SnoozeIntervalArgs.builder()
            .endTime("string")
            .startTime("string")
            .build())
        .project("string")
        .build());
    
    snooze_resource = gcp.monitoring.Snooze("snoozeResource",
        criteria={
            "filter": "string",
            "policies": ["string"],
        },
        display_name="string",
        interval={
            "end_time": "string",
            "start_time": "string",
        },
        project="string")
    
    const snoozeResource = new gcp.monitoring.Snooze("snoozeResource", {
        criteria: {
            filter: "string",
            policies: ["string"],
        },
        displayName: "string",
        interval: {
            endTime: "string",
            startTime: "string",
        },
        project: "string",
    });
    
    type: gcp:monitoring:Snooze
    properties:
        criteria:
            filter: string
            policies:
                - string
        displayName: string
        interval:
            endTime: string
            startTime: string
        project: string
    

    Snooze 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 Snooze resource accepts the following input properties:

    Criteria SnoozeCriteria

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    DisplayName string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    Interval SnoozeInterval

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Criteria SnoozeCriteriaArgs

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    DisplayName string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    Interval SnoozeIntervalArgs

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria object

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    display_name string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval object

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria SnoozeCriteria

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    displayName String
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval SnoozeInterval

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria SnoozeCriteria

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    displayName string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval SnoozeInterval

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria SnoozeCriteriaArgs

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    display_name str
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval SnoozeIntervalArgs

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria Property Map

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    displayName String
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval Property Map

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Snooze resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.

    Look up Existing Snooze Resource

    Get an existing Snooze 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?: SnoozeState, opts?: CustomResourceOptions): Snooze
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            criteria: Optional[SnoozeCriteriaArgs] = None,
            display_name: Optional[str] = None,
            interval: Optional[SnoozeIntervalArgs] = None,
            name: Optional[str] = None,
            project: Optional[str] = None) -> Snooze
    func GetSnooze(ctx *Context, name string, id IDInput, state *SnoozeState, opts ...ResourceOption) (*Snooze, error)
    public static Snooze Get(string name, Input<string> id, SnoozeState? state, CustomResourceOptions? opts = null)
    public static Snooze get(String name, Output<String> id, SnoozeState state, CustomResourceOptions options)
    resources:  _:    type: gcp:monitoring:Snooze    get:      id: ${id}
    import {
      to = gcp_monitoring_snooze.example
      id = "${id}"
    }
    
    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:
    Criteria SnoozeCriteria

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    DisplayName string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    Interval SnoozeInterval

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    Name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Criteria SnoozeCriteriaArgs

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    DisplayName string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    Interval SnoozeIntervalArgs

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    Name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria object

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    display_name string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval object

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria SnoozeCriteria

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    displayName String
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval SnoozeInterval

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    name String
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria SnoozeCriteria

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    displayName string
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval SnoozeInterval

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    name string
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria SnoozeCriteriaArgs

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    display_name str
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval SnoozeIntervalArgs

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    name str
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    criteria Property Map

    This defines the criteria for applying the Snooze.

    Note: After a snooze is created, its criteria can't be modified. Changing this block will force replacement of the resource. Structure is documented below.

    displayName String
    A display name for the Snooze. This can be, at most, 512 unicode characters.
    interval Property Map

    The Snooze will be active from interval.start_time through interval.end_time. interval.start_time cannot be in the past. There is a 15 second clock skew to account for the time it takes for a request to reach the API from the UI.

    Note: You can edit the name and period of an upcoming snooze, and you can edit the name and end time of an active snooze. You can't edit a past (expired) snooze. Structure is documented below.

    name String
    Identifier. The name of the Snooze. The format is: projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID] The ID of the Snooze will be generated by the system.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Supporting Types

    SnoozeCriteria, SnoozeCriteriaArgs

    Filter string
    When you define a snooze, you can also define a filter for that snooze. The filter is a string containing one or more key-value pairs. The string uses the standard https://google.aip.dev/160 filter syntax. If you define a filter for a snooze, then the snooze can only apply to one alert policy. When the snooze is active, incidents won't be created when the incident would have key-value pairs (labels) that match those specified by the filter in the snooze. Snooze filters support resource, metric, and metadata labels. If multiple labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have a resource label with an instance ID of 1234567890, a metric label with an instance name of test_group, a metadata user label with a key of foo and a value of bar, and a metadata system label with a key of region and a value of us-central1: "filter": "resource.labels.instance_id="1234567890" AND metric.labels.instance_name="test_group" AND metadata.user_labels.foo="bar" AND metadata.system_labels.region="us-central1""
    Policies List<string>
    The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
    Filter string
    When you define a snooze, you can also define a filter for that snooze. The filter is a string containing one or more key-value pairs. The string uses the standard https://google.aip.dev/160 filter syntax. If you define a filter for a snooze, then the snooze can only apply to one alert policy. When the snooze is active, incidents won't be created when the incident would have key-value pairs (labels) that match those specified by the filter in the snooze. Snooze filters support resource, metric, and metadata labels. If multiple labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have a resource label with an instance ID of 1234567890, a metric label with an instance name of test_group, a metadata user label with a key of foo and a value of bar, and a metadata system label with a key of region and a value of us-central1: "filter": "resource.labels.instance_id="1234567890" AND metric.labels.instance_name="test_group" AND metadata.user_labels.foo="bar" AND metadata.system_labels.region="us-central1""
    Policies []string
    The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
    filter string
    When you define a snooze, you can also define a filter for that snooze. The filter is a string containing one or more key-value pairs. The string uses the standard https://google.aip.dev/160 filter syntax. If you define a filter for a snooze, then the snooze can only apply to one alert policy. When the snooze is active, incidents won't be created when the incident would have key-value pairs (labels) that match those specified by the filter in the snooze. Snooze filters support resource, metric, and metadata labels. If multiple labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have a resource label with an instance ID of 1234567890, a metric label with an instance name of test_group, a metadata user label with a key of foo and a value of bar, and a metadata system label with a key of region and a value of us-central1: "filter": "resource.labels.instance_id="1234567890" AND metric.labels.instance_name="test_group" AND metadata.user_labels.foo="bar" AND metadata.system_labels.region="us-central1""
    policies list(string)
    The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
    filter String
    When you define a snooze, you can also define a filter for that snooze. The filter is a string containing one or more key-value pairs. The string uses the standard https://google.aip.dev/160 filter syntax. If you define a filter for a snooze, then the snooze can only apply to one alert policy. When the snooze is active, incidents won't be created when the incident would have key-value pairs (labels) that match those specified by the filter in the snooze. Snooze filters support resource, metric, and metadata labels. If multiple labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have a resource label with an instance ID of 1234567890, a metric label with an instance name of test_group, a metadata user label with a key of foo and a value of bar, and a metadata system label with a key of region and a value of us-central1: "filter": "resource.labels.instance_id="1234567890" AND metric.labels.instance_name="test_group" AND metadata.user_labels.foo="bar" AND metadata.system_labels.region="us-central1""
    policies List<String>
    The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
    filter string
    When you define a snooze, you can also define a filter for that snooze. The filter is a string containing one or more key-value pairs. The string uses the standard https://google.aip.dev/160 filter syntax. If you define a filter for a snooze, then the snooze can only apply to one alert policy. When the snooze is active, incidents won't be created when the incident would have key-value pairs (labels) that match those specified by the filter in the snooze. Snooze filters support resource, metric, and metadata labels. If multiple labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have a resource label with an instance ID of 1234567890, a metric label with an instance name of test_group, a metadata user label with a key of foo and a value of bar, and a metadata system label with a key of region and a value of us-central1: "filter": "resource.labels.instance_id="1234567890" AND metric.labels.instance_name="test_group" AND metadata.user_labels.foo="bar" AND metadata.system_labels.region="us-central1""
    policies string[]
    The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
    filter str
    When you define a snooze, you can also define a filter for that snooze. The filter is a string containing one or more key-value pairs. The string uses the standard https://google.aip.dev/160 filter syntax. If you define a filter for a snooze, then the snooze can only apply to one alert policy. When the snooze is active, incidents won't be created when the incident would have key-value pairs (labels) that match those specified by the filter in the snooze. Snooze filters support resource, metric, and metadata labels. If multiple labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have a resource label with an instance ID of 1234567890, a metric label with an instance name of test_group, a metadata user label with a key of foo and a value of bar, and a metadata system label with a key of region and a value of us-central1: "filter": "resource.labels.instance_id="1234567890" AND metric.labels.instance_name="test_group" AND metadata.user_labels.foo="bar" AND metadata.system_labels.region="us-central1""
    policies Sequence[str]
    The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
    filter String
    When you define a snooze, you can also define a filter for that snooze. The filter is a string containing one or more key-value pairs. The string uses the standard https://google.aip.dev/160 filter syntax. If you define a filter for a snooze, then the snooze can only apply to one alert policy. When the snooze is active, incidents won't be created when the incident would have key-value pairs (labels) that match those specified by the filter in the snooze. Snooze filters support resource, metric, and metadata labels. If multiple labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have a resource label with an instance ID of 1234567890, a metric label with an instance name of test_group, a metadata user label with a key of foo and a value of bar, and a metadata system label with a key of region and a value of us-central1: "filter": "resource.labels.instance_id="1234567890" AND metric.labels.instance_name="test_group" AND metadata.user_labels.foo="bar" AND metadata.system_labels.region="us-central1""
    policies List<String>
    The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.

    SnoozeInterval, SnoozeIntervalArgs

    EndTime string
    The end of the time interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    StartTime string
    The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    EndTime string
    The end of the time interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    StartTime string
    The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    end_time string
    The end of the time interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    start_time string
    The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    endTime String
    The end of the time interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    startTime String
    The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    endTime string
    The end of the time interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    startTime string
    The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    end_time str
    The end of the time interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    start_time str
    The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    endTime String
    The end of the time interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
    startTime String
    The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

    Import

    Snooze can be imported using any of these accepted formats:

    • projects/{{project}}/snoozes/{{name}}
    • {{project}}/{{name}}
    • {{name}}

    When using the pulumi import command, Snooze can be imported using one of the formats above. For example:

    $ pulumi import gcp:monitoring/snooze:Snooze default projects/{{project}}/snoozes/{{name}}
    $ pulumi import gcp:monitoring/snooze:Snooze default {{project}}/{{name}}
    $ pulumi import gcp:monitoring/snooze:Snooze default {{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v10.2.0
    published on Tuesday, Oct 20, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial