Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
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)
public static Output<GetSnoozeResult> getSnooze(GetSnoozeArgs args, InvokeOptions options)
fn::invoke:
function: google-native:monitoring/v3:getSnooze
arguments:
# arguments dictionaryThe following arguments are supported:
getSnooze Result
The following output properties are available:
- Criteria
Pulumi.
Google Native. Monitoring. V3. Outputs. Criteria Response - This defines the criteria for applying the Snooze. See Criteria for more information.
- Display
Name string - A display name for the Snooze. This can be, at most, 512 unicode characters.
- Interval
Pulumi.
Google Native. Monitoring. V3. Outputs. Time Interval Response - 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
Criteria
Response - This defines the criteria for applying the Snooze. See Criteria for more information.
- Display
Name string - A display name for the Snooze. This can be, at most, 512 unicode characters.
- Interval
Time
Interval Response - 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
Criteria
Response - This defines the criteria for applying the Snooze. See Criteria for more information.
- display
Name String - A display name for the Snooze. This can be, at most, 512 unicode characters.
- interval
Time
Interval Response - 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
Criteria
Response - This defines the criteria for applying the Snooze. See Criteria for more information.
- display
Name string - A display name for the Snooze. This can be, at most, 512 unicode characters.
- interval
Time
Interval Response - 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
Criteria
Response - 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
Time
Interval Response - 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.
- display
Name 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
- 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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
