NAME

Google::Monitoring::V3::Snooze - Compiled Protocol Buffers messages for google/monitoring/v3/snooze.proto

SYNOPSIS

use Google::Monitoring::V3::Snooze;

my $msg = Google::Monitoring::V3::Snooze::Snooze->new({
    name => $name,
    criteria => $criteria,
    interval => $interval,
    display_name => $display_name,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Monitoring::V3::Snooze::Snooze->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/v3/snooze.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Monitoring::V3::Snooze::Snooze

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

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

  • $msg->criteria() / $msg->criteria($value)

    Type: Message (Google::Monitoring::V3::Snooze::Snooze::Criteria)

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

  • $msg->interval() / $msg->interval($value)

    Type: Message (Google::Monitoring::V3::Common::TimeInterval)

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

  • $msg->display_name() / $msg->display_name($value)

    Type: String

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

SEE ALSO

Protobuf, Protobuf::Message, Google::Monitoring::V3::Snooze::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.