NAME
Google::Cloud::Databasecenter::V1beta::MetricData - Compiled Protocol Buffers messages for google/cloud/databasecenter/v1beta/metric_data.proto
SYNOPSIS
use Google::Cloud::Databasecenter::V1beta::MetricData;
my $msg = Google::Cloud::Databasecenter::V1beta::MetricData::Metrics->new({
p99_cpu_utilization => $p99_cpu_utilization,
p95_cpu_utilization => $p95_cpu_utilization,
current_storage_used_bytes => $current_storage_used_bytes,
peak_storage_utilization => $peak_storage_utilization,
});
# Read or update a field
my $val = $msg->p99_cpu_utilization();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Databasecenter::V1beta::MetricData::Metrics->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/databasecenter/v1beta/metric_data.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Databasecenter::V1beta::MetricData::Metrics
Metrics represents the metrics for a database resource.
Inherits from Protobuf::Message.
Accessors
$msg->p99_cpu_utilization()/$msg->p99_cpu_utilization($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
$msg->p95_cpu_utilization()/$msg->p95_cpu_utilization($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
$msg->current_storage_used_bytes()/$msg->current_storage_used_bytes($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)Current storage used by the resource in bytes.
$msg->peak_storage_utilization()/$msg->peak_storage_utilization($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
$msg->peak_memory_utilization()/$msg->peak_memory_utilization($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).
$msg->peak_number_connections()/$msg->peak_number_connections($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)Peak number of connections observed for the resource. The value is a positive integer.
$msg->node_count()/$msg->node_count($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)Number of nodes in instance for spanner or bigtable.
$msg->processing_unit_count()/$msg->processing_unit_count($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)Number of processing units in spanner.
$msg->current_memory_used_bytes()/$msg->current_memory_used_bytes($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::MetricData)Current memory used by the resource in bytes.
Google::Cloud::Databasecenter::V1beta::MetricData::MetricData
MetricData represents the metric data for a database resource.
Inherits from Protobuf::Message.
Accessors
$msg->value()/$msg->value($value)Type:
Message(Google::Cloud::Databasecenter::V1beta::MetricData::TypedValue)The value associated with the metric.
$msg->observation_time()/$msg->observation_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the metric was observed in the metric source service.
Google::Cloud::Databasecenter::V1beta::MetricData::TypedValue
TypedValue represents the value of the metric based on data type.
Inherits from Protobuf::Message.
Accessors
$msg->double_value()/$msg->double_value($value)Type:
DoubleThe value of the metric as double.
$msg->int64_value()/$msg->int64_value($value)Type:
Int64The value of the metric as int.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Databasecenter::V1beta::MetricData::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.