Service Client: Google::Monitoring::V3::SnoozeService::SnoozeServiceClient

Client stub representing the remote SnoozeService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to monitoring.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

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

SYNOPSIS

use Google::Monitoring::V3::SnoozeService;

my $msg = Google::Monitoring::V3::SnoozeService::CreateSnoozeRequest->new({
    parent => $parent,
    snooze => $snooze,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/v3/snooze_service.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::SnoozeService::CreateSnoozeRequest

The message definition for creating a `Snooze`. Users must provide the body of the `Snooze` to be created but must omit the `Snooze` field, `name`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in which a `Snooze` should be created. The format is:

    projects/[PROJECT_ID_OR_NUMBER]
  • $msg->snooze() / $msg->snooze($value)

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

    Required. The `Snooze` to create. Omit the `name` field, as it will be filled in by the API.

Google::Monitoring::V3::SnoozeService::ListSnoozesRequest

The message definition for listing `Snooze`s associated with the given `parent`, satisfying the optional `filter`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) whose `Snooze`s should be listed. The format is:

    projects/[PROJECT_ID_OR_NUMBER]
  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Optional filter to restrict results to the given criteria. The following fields are supported.

    * `interval.start_time`
    * `interval.end_time`

    For example:

    interval.start_time > "2022-03-11T00:00:00-08:00" AND
        interval.end_time < "2022-03-12T00:00:00-08:00"
  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of results to return for a single query. The server may further constrain the maximum number of results returned in a single page. The value should be in the range [1, 1000]. If the value given is outside this range, the server will decide the number of results to be returned.

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

    Type: String

    Optional. The `next_page_token` from a previous call to `ListSnoozesRequest` to get the next page of results.

Google::Monitoring::V3::SnoozeService::ListSnoozesResponse

The results of a successful `ListSnoozes` call, containing the matching `Snooze`s.

Inherits from Protobuf::Message.

Accessors

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

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

    `Snooze`s matching this list call.

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

    Type: String

    Page token for repeated calls to `ListSnoozes`, to fetch additional pages of results. If this is empty or missing, there are no more pages.

Google::Monitoring::V3::SnoozeService::GetSnoozeRequest

The message definition for retrieving a `Snooze`. Users must specify the field, `name`, which identifies the `Snooze`.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The ID of the `Snooze` to retrieve. The format is:

    projects/[PROJECT_ID_OR_NUMBER]/snoozes/[SNOOZE_ID]

Google::Monitoring::V3::SnoozeService::UpdateSnoozeRequest

The message definition for updating a `Snooze`. The field, `snooze.name` identifies the `Snooze` to be updated. The remainder of `snooze` gives the content the `Snooze` in question will be assigned.

What fields can be updated depends on the start time and end time of the `Snooze`.

* end time is in the past: These `Snooze`s are considered
  read-only and cannot be updated.
* start time is in the past and end time is in the future: `display_name`
  and `interval.end_time` can be updated.
* start time is in the future: `display_name`, `interval.start_time` and
  `interval.end_time` can be updated.

Inherits from Protobuf::Message.

Accessors

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

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

    Required. The `Snooze` to update. Must have the name field present.

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The fields to update.

    For each field listed in `update_mask`:

    * If the `Snooze` object supplied in the `UpdateSnoozeRequest` has a
      value for that field, the value of the field in the existing `Snooze`
      will be set to the value of the field in the supplied `Snooze`.
    * If the field does not have a value in the supplied `Snooze`, the field
      in the existing `Snooze` is set to its default value.

    Fields not listed retain their existing value.

    The following are the field names that are accepted in `update_mask`:

    * `display_name`
    * `interval.start_time`
    * `interval.end_time`

    That said, the start time and end time of the `Snooze` determines which fields can legally be updated. Before attempting an update, users should consult the documentation for `UpdateSnoozeRequest`, which talks about which fields can be updated.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.