google-native logo
Google Cloud Native v0.28.0, Feb 2 23

google-native.monitoring/v3.Snooze

Creates a Snooze that will prevent alerts, which match the provided criteria, from being opened. The Snooze applies for a specific time interval. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.

Create Snooze Resource

new Snooze(name: string, args: SnoozeArgs, opts?: CustomResourceOptions);
@overload
def Snooze(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           criteria: Optional[CriteriaArgs] = None,
           display_name: Optional[str] = None,
           interval: Optional[TimeIntervalArgs] = None,
           name: Optional[str] = None,
           project: Optional[str] = None)
@overload
def Snooze(resource_name: str,
           args: SnoozeArgs,
           opts: Optional[ResourceOptions] = 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: google-native:monitoring/v3:Snooze
properties: # The arguments to resource properties.
options: # 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.
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.

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

The Snooze resource accepts the following input properties:

Criteria Pulumi.GoogleNative.Monitoring.V3.Inputs.CriteriaArgs

This defines the criteria for applying the Snooze. See Criteria for more information.

DisplayName string

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

Interval Pulumi.GoogleNative.Monitoring.V3.Inputs.TimeIntervalArgs

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.

Name string

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
Criteria CriteriaArgs

This defines the criteria for applying the Snooze. See Criteria for more information.

DisplayName string

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

Interval TimeIntervalArgs

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.

Name string

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
criteria CriteriaArgs

This defines the criteria for applying the Snooze. See Criteria for more information.

displayName String

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

interval TimeIntervalArgs

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.

name String

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
criteria CriteriaArgs

This defines the criteria for applying the Snooze. See Criteria for more information.

displayName string

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

interval TimeIntervalArgs

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.

name string

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
criteria CriteriaArgs

This defines the criteria for applying the Snooze. See Criteria for more information.

display_name str

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

interval TimeIntervalArgs

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.

name str

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
criteria Property Map

This defines the criteria for applying the Snooze. See Criteria for more information.

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.

name String

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

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.

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.

Supporting Types

Criteria

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.

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.

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.

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.

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.

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.

CriteriaResponse

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.

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.

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.

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.

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.

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.

TimeInterval

EndTime string

The end of the time interval.

StartTime string

Optional. 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.

EndTime string

The end of the time interval.

StartTime string

Optional. 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.

endTime String

The end of the time interval.

startTime String

Optional. 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.

endTime string

The end of the time interval.

startTime string

Optional. 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.

end_time str

The end of the time interval.

start_time str

Optional. 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.

endTime String

The end of the time interval.

startTime String

Optional. 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.

TimeIntervalResponse

EndTime string

The end of the time interval.

StartTime string

Optional. 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.

EndTime string

The end of the time interval.

StartTime string

Optional. 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.

endTime String

The end of the time interval.

startTime String

Optional. 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.

endTime string

The end of the time interval.

startTime string

Optional. 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.

end_time str

The end of the time interval.

start_time str

Optional. 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.

endTime String

The end of the time interval.

startTime String

Optional. 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.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0