NAME

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

SYNOPSIS

use Google::Monitoring::V3::Uptime;

my $msg = Google::Monitoring::V3::Uptime::InternalChecker->new({
    name => $name,
    display_name => $display_name,
    network => $network,
    gcp_zone => $gcp_zone,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/v3/uptime.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::Uptime::InternalChecker

An internal checker allows Uptime checks to run on private/internal GCP resources.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A unique resource name for this InternalChecker. The format is:

    projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]

    `[PROJECT_ID_OR_NUMBER]` is the Cloud Monitoring Metrics Scope project for the Uptime check config associated with the internal checker.

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

    Type: String

    The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced.

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

    Type: String

    The [GCP VPC network](https://cloud.google.com/vpc/docs/vpc) where the internal resource lives (ex: "default").

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

    Type: String

    The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified.

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

    Type: String

    The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project.

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

    Type: Enum (Google::Monitoring::V3::InternalChecker::State)

    The current operational state of the internal checker.

Enum: InternalChecker::State

  • UNSPECIFIED => 0

  • CREATING => 1

  • RUNNING => 2

Google::Monitoring::V3::Uptime::SyntheticMonitorTarget

Describes a Synthetic Monitor to be invoked by Uptime.

Inherits from Protobuf::Message.

Accessors

Google::Monitoring::V3::Uptime::UptimeCheckConfig

This message configures which resources and services to monitor for availability.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. A unique resource name for this Uptime check configuration. The format is:

    projects/[PROJECT_ID_OR_NUMBER]/uptimeCheckConfigs/[UPTIME_CHECK_ID]

    `[PROJECT_ID_OR_NUMBER]` is the Workspace host project associated with the Uptime check.

    This field should be omitted when creating the Uptime check configuration; on create, the resource name is assigned by the server and included in the response.

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

    Type: String

    A human-friendly name for the Uptime check configuration. The display name should be unique within a Cloud Monitoring Workspace in order to make it easier to identify; however, uniqueness is not enforced. Required.

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

    Type: Message (Google::Api::MonitoredResource::MonitoredResource)

    The [monitored resource](https://cloud.google.com/monitoring/api/resources) associated with the configuration. The following monitored resource types are valid for this field: `uptime_url`, `gce_instance`, `gae_app`, `aws_ec2_instance`, `aws_elb_load_balancer` `k8s_service` `servicedirectory_service` `cloud_run_revision`

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

    Type: Message (Google::Monitoring::V3::Uptime::UptimeCheckConfig::ResourceGroup)

    The group resource associated with the configuration.

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

    Type: Message (Google::Monitoring::V3::Uptime::SyntheticMonitorTarget)

    Specifies a Synthetic Monitor to invoke.

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

    Type: Message (Google::Monitoring::V3::Uptime::UptimeCheckConfig::HttpCheck)

    Contains information needed to make an HTTP or HTTPS check.

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

    Type: Message (Google::Monitoring::V3::Uptime::UptimeCheckConfig::TcpCheck)

    Contains information needed to make a TCP check.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    How often, in seconds, the Uptime check is performed. Currently, the only supported values are `60s` (1 minute), `300s` (5 minutes), `600s` (10 minutes), and `900s` (15 minutes). Optional, defaults to `60s`.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    The maximum amount of time to wait for the request to complete (must be between 1 and 60 seconds). Required.

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

    Type: Message (Google::Monitoring::V3::Uptime::UptimeCheckConfig::ContentMatcher)

    The content that is expected to appear in the data returned by the target server against which the check is run. Currently, only the first entry in the `content_matchers` list is supported, and additional entries will be ignored. This field is optional and should only be specified if a content match is required as part of the/ Uptime check.

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

    Type: Enum (Google::Monitoring::V3::UptimeCheckConfig::CheckerType)

    The type of checkers to use to execute the Uptime check.

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

    Type: Enum (Google::Monitoring::V3::UptimeCheckRegion)

    The list of regions from which the check will be run. Some regions contain one location, and others contain more than one. If this field is specified, enough regions must be provided to include a minimum of 3 locations. Not specifying this field will result in Uptime checks running from all available regions.

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

    Type: Bool

    If this is `true`, then checks are made only from the 'internal_checkers'. If it is `false`, then checks are made only from the 'selected_regions'. It is an error to provide 'selected_regions' when is_internal is `true`, or to provide 'internal_checkers' when is_internal is `false`.

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

    Type: Message (Google::Monitoring::V3::Uptime::InternalChecker)

    The internal checkers that this check will egress from. If `is_internal` is `true` and this list is empty, the check will egress from all the InternalCheckers configured for the project that owns this `UptimeCheckConfig`.

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

    Type: Message (Google::Monitoring::V3::Uptime::UptimeCheckConfig::UserLabelsEntry)

    User-supplied key/value data to be used for organizing and identifying the `UptimeCheckConfig` objects.

    The field can contain up to 64 entries. Each key and value is limited to 63 Unicode characters or 128 bytes, whichever is smaller. Labels and values can contain only lowercase letters, numerals, underscores, and dashes. Keys must begin with a letter.

Enum: UptimeCheckConfig::CheckerType

  • CHECKER_TYPE_UNSPECIFIED => 0

  • STATIC_IP_CHECKERS => 1

  • VPC_CHECKERS => 3

Google::Monitoring::V3::Uptime::UptimeCheckIp

Contains the region, location, and list of IP addresses where checkers in the location run from.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Monitoring::V3::UptimeCheckRegion)

    A broad region category in which the IP address is located.

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

    Type: String

    A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.

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

    Type: String

    The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.