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

google-native.monitoring/v3.getSnooze

Retrieves a Snooze by name.

Using getSnooze

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getSnooze(args: GetSnoozeArgs, opts?: InvokeOptions): Promise<GetSnoozeResult>
function getSnoozeOutput(args: GetSnoozeOutputArgs, opts?: InvokeOptions): Output<GetSnoozeResult>
def get_snooze(project: Optional[str] = None,
               snooze_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetSnoozeResult
def get_snooze_output(project: Optional[pulumi.Input[str]] = None,
               snooze_id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSnoozeResult]
func LookupSnooze(ctx *Context, args *LookupSnoozeArgs, opts ...InvokeOption) (*LookupSnoozeResult, error)
func LookupSnoozeOutput(ctx *Context, args *LookupSnoozeOutputArgs, opts ...InvokeOption) LookupSnoozeResultOutput

> Note: This function is named LookupSnooze in the Go SDK.

public static class GetSnooze 
{
    public static Task<GetSnoozeResult> InvokeAsync(GetSnoozeArgs args, InvokeOptions? opts = null)
    public static Output<GetSnoozeResult> Invoke(GetSnoozeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSnoozeResult> getSnooze(GetSnoozeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: google-native:monitoring/v3:getSnooze
  arguments:
    # arguments dictionary

The following arguments are supported:

SnoozeId string
Project string
SnoozeId string
Project string
snoozeId String
project String
snoozeId string
project string
snoozeId String
project String

getSnooze Result

The following output properties are available:

Criteria Pulumi.GoogleNative.Monitoring.V3.Outputs.CriteriaResponse

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.Outputs.TimeIntervalResponse

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.

Criteria CriteriaResponse

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 TimeIntervalResponse

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.

criteria CriteriaResponse

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 TimeIntervalResponse

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.

criteria CriteriaResponse

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 TimeIntervalResponse

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.

criteria CriteriaResponse

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 TimeIntervalResponse

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.

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.

Supporting Types

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.

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