Service Client: Google::Cloud::Databasecenter::V1beta::Service::DatabaseCenterClient

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

target

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

credentials

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

NAME

Google::Cloud::Databasecenter::V1beta::Service - Compiled Protocol Buffers messages for google/cloud/databasecenter/v1beta/service.proto

SYNOPSIS

use Google::Cloud::Databasecenter::V1beta::Service;

my $msg = Google::Cloud::Databasecenter::V1beta::Service::QueryProductsRequest->new({
    parent => $parent,
    page_size => $page_size,
    page_token => $page_token,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Databasecenter::V1beta::Service::QueryProductsRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/databasecenter/v1beta/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::Cloud::Databasecenter::V1beta::Service::QueryProductsRequest

QueryProductsRequest is the request to get a list of products.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent can be a project, a folder, or an organization.

    The allowed values are:

    * projects/{PROJECT_ID}/locations/{LOCATION} (e.g.,"projects/foo-bar/locations/us-central1") * projects/{PROJECT_NUMBER}/locations/{LOCATION} (e.g.,"projects/12345678/locations/us-central1") * folders/{FOLDER_NUMBER}/locations/{LOCATION} (e.g.,"folders/1234567/locations/us-central1") * organizations/{ORGANIZATION_NUMBER}/locations/{LOCATION} (e.g.,"organizations/123456/locations/us-central1") * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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

    Type: Int32

    Optional. If unspecified, at most 50 products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. A page token, received from a previous `ListLocations` call. Provide this to retrieve the subsequent page. All other parameters except page size should match the call that provided the page page token.

Google::Cloud::Databasecenter::V1beta::Service::QueryProductsResponse

QueryProductsResponse represents the response containing a list of products.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Product::Product)

    List of database products returned.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages

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

    Type: String

    Unordered list. List of unreachable regions from where data could not be retrieved.

Google::Cloud::Databasecenter::V1beta::Service::QueryDatabaseResourceGroupsRequest

QueryDatabaseResourceGroupsRequest is the request to get a list of database groups.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent can be a project, a folder, or an organization. The search is limited to the resources within the `scope`.

    The allowed values are:

    * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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

    Type: String

    Optional. The expression to filter resources.

    The following fields are filterable: * full_resource_name * resource_type * container * product.type * product.engine * product.version * location * labels * resource_category * machine_config.cpu_count * machine_config.memory_size_bytes * machine_config.shard_count * resource_name * tags * backupdr_config.backupdr_managed * edition

    The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately used to group the combinations.

    Example: `location="us-east1"` Example: `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR container="projects/456") AND location="us-east1"` Example: `full_resource_name=~"test"` Example: `full_resource_name=~"test.*master"`

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Signals::SignalTypeGroup)

    Optional. Groups of signal types that are requested.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Signals::SignalFilter)

    Optional. Filters based on signals. The list will be ORed together and then ANDed with the `filters` field above.

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

    Type: String

    Optional. A field that specifies the sort order of the results.

    The following fields are sortable: * full_resource_name * product.type * product.engine * product.version * container * issue_count * machine_config.vcpu_count * machine_config.memory_size_bytes * machine_config.shard_count * resource_name * issue_severity * signal_type * location * resource_type * instance_type * edition * metrics.p99_cpu_utilization * metrics.p95_cpu_utilization * metrics.current_storage_used_bytes * metrics.node_count * metrics.processing_unit_count * metrics.current_memory_used_bytes * metrics.peak_storage_utilization * metrics.peak_number_connections * metrics.peak_memory_utilization

    The default order is ascending. Add "DESC" after the field name to indicate descending order. Add "ASC" after the field name to indicate ascending order. It only supports a single field at a time.

    For example: `order_by = "full_resource_name"` sorts response in ascending order `order_by = "full_resource_name DESC"` sorts response in descending order `order_by = "issue_count DESC"` sorts response in descending order of count of all issues associated with a resource.

    More explicitly, `order_by = "full_resource_name, product"` is not supported.

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

    Type: Int32

    Optional. If unspecified, at most 50 resource groups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. A page token, received from a previous `QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the subsequent page. All parameters except page_token should match the parameters in the call that provided the page page token.

Google::Cloud::Databasecenter::V1beta::Service::QueryDatabaseResourceGroupsResponse

QueryDatabaseResourceGroupsResponse represents the response message containing a list of resource groups.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::DatabaseResourceGroup)

    List of database resource groups that pass the filter.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: String

    Unordered list. List of unreachable regions from where data could not be retrieved.

Google::Cloud::Databasecenter::V1beta::Service::DatabaseResourceGroup

DatabaseResourceGroup represents all resources that serve a common data set. It is considered notionally as a single entity, powered by any number of units of compute and storage.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Databasecenter::V1beta::Service::DatabaseResource

DatabaseResource represents every individually configured database unit representing compute and/or storage.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::DatabaseResource)

    List of children associated with a database group.

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

    Type: String

    The full resource name, based on CAIS resource name format https://cloud.google.com/asset-inventory/docs/resource-name-format

    Example:

    `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`
    `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1`
    `//spanner.googleapis.com/projects/project-number/instances/spanner-instance-1`
    `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1`
    `//alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/c1/instances/i1`
  • $msg->container() / $msg->container($value)

    Type: String

    Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Product::Product)

    The product this resource represents.

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

    Type: String

    The location of the resources. It supports returning only regional locations in Google Cloud. These are of the form: "us-central1", "us-east1", etc. See https://cloud.google.com/about/locations for a list of such regions.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::Label)

    Labels applied on the resource. The requirements for labels assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/labels-overview#requirements

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::Tag)

    Tags applied on the resource. The requirements for tags assigned to Google Cloud resources may be found at https://cloud.google.com/resource-manager/docs/tags/tags-overview

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

    Type: String

    The type of resource defined according to the pattern: {Service Name}/{Type}. Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance spanner.googleapis.com/Instance

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::SubResourceType)

    Subtype of the resource specified at creation time.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::MachineConfig::MachineConfig)

    Machine configuration like CPU, memory, etc for the resource.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Signals::SignalGroup)

    The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::MetricData::Metrics)

    Observable metrics for the resource e.g. CPU utilization, memory utilization, etc.

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::ResourceCategory)

    The category of the resource.

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

    Type: String

    The name of the resource(The last part of the full resource name). Example: For full resource name - `//cloudsql.googleapis.com/projects/project-number/instances/mysql-1`, resource name - `mysql-1` For full resource name - `//cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , resource name - `postgres-1` Note: In some cases, there might be more than one resource with the same resource name.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::BackupDRConfig)

    Optional. Backup and disaster recovery details for the resource.

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::Edition)

    The edition of the resource.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Maintenance::MaintenanceInfo)

    Optional. The maintenance information of the resource.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Affiliation::Affiliation)

    Optional. Affiliation details of the resource.

Google::Cloud::Databasecenter::V1beta::Service::AggregateIssueStatsRequest

AggregateIssueStatsRequest represents the input to the AggregateIssueStats method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent can be a project, a folder, or an organization. The search is limited to the resources within the `scope`.

    The allowed values are:

    * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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

    Type: String

    Optional. The expression to filter resources.

    Supported fields are: `full_resource_name`, `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc.

    The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately used to group the combinations.

    Example: `location="us-east1"` Example: `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR container="projects/456") AND location="us-east1"`

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Signals::SignalTypeGroup)

    Optional. Lists of signal types that are issues.

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

    Type: Message (Google::Type::Date::Date)

    Optional. The baseline date w.r.t. which the delta counts are calculated. If not set, delta counts are not included in the response and the response indicates the current state of the fleet.

Google::Cloud::Databasecenter::V1beta::Service::AggregateQueryStatsRequest

AggregateQueryStatsRequest represents the input to the AggregateQueryStats method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent can be a project, a folder, or an organization. The search is limited to the resources within the `parent`.

    The allowed values are:

    * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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

    Type: String

    Optional. The expression to order the results by. Example: `order_by="execution_count"` Example: `order_by="execution_count desc"` Supported order by fields are `execution_count`, `rows_processed`, `total_cpu_time`, `avg_cpu_time`.

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

    Type: String

    Optional. The expression to filter resources.

    Supported fields are: `full_resource_name`, `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, `labels`, `issues`, fields of availability_info, data_protection_info,'resource_name', etc.

    The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately used to group the combinations.

    Example: `location="us-east1"` Example: `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR container="projects/456") AND location="us-east1"` Additional specific fields for query stats are: `metric_window`, `query_hash`, `normalized_query`. Example: `metric_window="LAST_ONE_DAY"` (Possible values for `metric_window` are: `LAST_ONE_DAY`, `LAST_ONE_WEEK`, `LAST_TWO_WEEKS`) Example: `query_hash="12345678"` Example: `normalized_query="SELECT * FROM table"`

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

    Type: Int32

    Optional. If unspecified, at most 100 query stats will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. A page token, received from a previous `AggregateQueryStatsRequest` call. Provide this to retrieve the subsequent page. All parameters except page_token should match the parameters in the call that provided the page token.

Google::Cloud::Databasecenter::V1beta::Service::AggregateQueryStatsResponse

The response message containing relevant query stats for database resources.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::QueryStatsInfo)

    List of query stats where each group contains stats for resources having a particular combination of relevant query stats.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: String

    Unordered list. List of unreachable regions from where data could not be retrieved.

Google::Cloud::Databasecenter::V1beta::Service::AggregateIssueStatsResponse

The response message containing one of more group of relevant health issues for database resources.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::IssueGroupStats)

    List of issue group stats where each group contains stats for resources having a particular combination of relevant issues.

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

    Type: Int32

    Total count of the resources filtered in based on the user given filter.

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

    Type: Int32

    Total count of the resource filtered in based on the user given filter.

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

    Type: String

    Unordered list. List of unreachable regions from where data could not be retrieved.

Google::Cloud::Databasecenter::V1beta::Service::IssueGroupStats

IssueGroupStats refers to stats for a particulare combination of relevant health issues of database resources.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Database resource level health card name. This will corresponds to one of the requested input group names.

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

    Type: Int32

    Total count of the groups of resources returned by the filter that also have one or more resources for which any of the specified issues are applicable.

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

    Type: Int32

    Total count of resources returned by the filter for which any of the specified issues are applicable.

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

    Type: Int32

    The number of resource groups from the total groups as defined above that are healthy with respect to all of the specified issues.

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

    Type: Int32

    The number of resources from the total defined above in field total_resources_count that are healthy with respect to all of the specified issues.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::IssueStats)

    List of issues stats containing count of resources having particular issue category.

Google::Cloud::Databasecenter::V1beta::Service::IssueStats

IssueStats holds stats for a particular signal category.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Databasecenter::V1beta::Service::Label

Label is a key value pair applied to a resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The key part of the label.

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

    Type: String

    The value part of the label.

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

    Type: String

    The source of the Label. Source is empty if the label is directly attached to the resource and not inherited.

Google::Cloud::Databasecenter::V1beta::Service::AggregateFleetRequest

The request message to aggregate fleet which are grouped by a field.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent can be a project, a folder, or an organization. The search is limited to the resources within the `scope`.

    The allowed values are:

    * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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

    Type: String

    Optional. The expression to filter resources.

    Supported fields are: `full_resource_name`, `resource_type`, `container`, `product.type`, `product.engine`, `product.version`, `location`, `labels`, `issues`, fields of availability_info, data_protection_info, 'resource_name', etc.

    The expression is a list of zero or more restrictions combined via logical operators `AND` and `OR`. When `AND` and `OR` are both used in the expression, parentheses must be appropriately used to group the combinations.

    Example: `location="us-east1"` Example: `container="projects/123" OR container="projects/456"` Example: `(container="projects/123" OR container="projects/456") AND location="us-east1"`

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

    Type: String

    Optional. A field that statistics are grouped by. Valid values are any combination of the following: * container * product.type * product.engine * product.version * location * sub_resource_type * management_type * tag.key * tag.value * tag.source * tag.inherited * label.key * label.value * label.source * has_maintenance_schedule * has_deny_maintenance_schedules Comma separated list.

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

    Type: String

    Optional. Valid values to order by are: * resource_groups_count * resources_count * and all fields supported by `group_by` The default order is ascending. Add "DESC" after the field name to indicate descending order. Add "ASC" after the field name to indicate ascending order. It supports ordering using multiple fields. For example: `order_by = "resource_groups_count"` sorts response in ascending order `order_by = "resource_groups_count DESC"` sorts response in descending order `order_by = "product.type, product.version DESC, location"` orders by type in ascending order, version in descending order and location in ascending order

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

    Type: Int32

    Optional. If unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. A page token, received from a previous `AggregateFleet` call. Provide this to retrieve the subsequent page. All other parameters should match the parameters in the call that provided the page token except for page_size which can be different.

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

    Type: Message (Google::Type::Date::Date)

    Optional. The baseline date w.r.t. which the delta counts are calculated. If not set, delta counts are not included in the response and the response indicates the current state of the fleet.

Google::Cloud::Databasecenter::V1beta::Service::QueryStatsInfo

QueryStatsInfo contains the aggregated and detailed query stats for a particular combination of relevant query stats for queries having same normalized query.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Databasecenter::V1beta::Service::ResourceId

ResourceId contains the identifier for a database resource, including the full resource name, resource type, and product.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The full resource name of the resource.

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

    Type: String

    The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Product::Product)

    The product of the resource, including the type, engine, and version.

Google::Cloud::Databasecenter::V1beta::Service::QueryStats

QueryStats contains the stats for a particular combination of query_hash, query_string and resource_type.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The query hash of the query.

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

    Type: String

    The query string is normalized query without any PII data.

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

    Type: String

    The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::ResourceId)

    The resource ids for which the query stats are collected.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::QueryMetrics)

    Metrics related to the query performance.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Signals::InefficientQueryInfo)

    Information about inefficient query.

Google::Cloud::Databasecenter::V1beta::Service::QueryMetrics

QueryMetrics contains the metrics related to the query execution.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    The number of times the query was executed.

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

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

    The average execution period of the query across all runs.

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

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

    The total CPU time consumed by the query across all runs.

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

    Type: Int64

    The average number of rows processed by the query across all runs.

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::QueryMetrics::MetricsWindow)

    The window over which the metrics are aggregated.

Enum: QueryMetrics::MetricsWindow

  • METRICS_WINDOW_UNSPECIFIED => 0

  • LAST_ONE_DAY => 1

  • LAST_ONE_WEEK => 2

  • LAST_TWO_WEEKS => 3

Google::Cloud::Databasecenter::V1beta::Service::AggregateFleetResponse

The response message to aggregate a fleet by some group by fields.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::AggregateFleetRow)

    Represents a row grouped by the fields in the input.

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

    Type: Int32

    Count of all resource groups in the fleet. This includes counts from all pages.

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

    Type: Int32

    Count of all resources in the fleet. This includes counts from all pages.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: String

    Unordered list. List of unreachable regions from where data could not be retrieved.

Google::Cloud::Databasecenter::V1beta::Service::AggregateFleetRow

Individual row grouped by a particular dimension.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::Dimension)

    Group by dimension.

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

    Type: Int32

    Number of resource groups that have a particular dimension.

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

    Type: Int32

    Number of resources that have a particular dimension.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::DeltaDetails)

    Optional. Delta counts and details of resources which were added to/deleted from fleet.

Google::Cloud::Databasecenter::V1beta::Service::Dimension

Dimension used to aggregate the fleet.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::ProductType)

    Type to identify a product

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::Engine)

    Engine refers to underlying database binary running in an instance.

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

    Type: String

    Version of the underlying database engine

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

    Type: String

    The location of the resources. It supports returning only regional locations in Google Cloud.

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

    Type: String

    The type of resource defined according to the pattern: {Service Name}/{Type}. Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance spanner.googleapis.com/Instance

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::SubResourceType)

    Subtype of the resource specified at creation time.

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::ResourceCategory)

    The category of the resource.

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::ManagementType)

    The management type of the resource.

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

    Type: Enum (Google::Cloud::Databasecenter::V1beta::Edition)

    The edition of the resource.

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

    Type: String

    Tag key of the resource.

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

    Type: String

    Tag value of the resource.

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

    Type: String

    Tag source of the resource.

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

    Type: Bool

    Tag inheritance value of the resource.

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

    Type: String

    Label key of the resource.

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

    Type: String

    Label value of the resource.

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

    Type: String

    Label source of the resource.

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

    Type: Bool

    Whether the resource has a maintenance schedule.

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

    Type: Bool

    Whether the resource has deny maintenance schedules.

Google::Cloud::Databasecenter::V1beta::Service::BackupDRConfig

BackupDRConfig to capture the backup and disaster recovery details of database resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Indicates if the resource is managed by BackupDR.

Google::Cloud::Databasecenter::V1beta::Service::QueryIssuesRequest

QueryIssuesRequest is the request to get a list of issues.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Parent can be a project, a folder, or an organization. The list is limited to the one attached to resources within the `scope` that a user has access to.

    The allowed values are:

    * projects/{PROJECT_ID} (e.g., "projects/foo-bar") * projects/{PROJECT_NUMBER} (e.g., "projects/12345678") * folders/{FOLDER_NUMBER} (e.g., "folders/1234567") * organizations/{ORGANIZATION_NUMBER} (e.g., "organizations/123456")

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

    Type: String

    Optional. Supported fields are: 'product', `location`, `issue_severity`, 'tags', 'labels',

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::SignalProductsFilters)

    Optional. Filters based on signal and product. The filter list will be ORed across pairs and ANDed within a signal and products pair.

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

    Type: String

    Optional. Following fields are sortable: SignalType Product Location IssueSeverity

    The default order is ascending. Add "DESC" after the field name to indicate descending order. Add "ASC" after the field name to indicate ascending order. It only supports a single field at a time.

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

    Type: Int32

    Optional. If unspecified, at most 50 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

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

    Type: String

    Optional. A page token, received from a previous `QueryIssues` call. Provide this to retrieve the subsequent page. All parameters except page size should match the parameters used in the call that provided the page token.

Google::Cloud::Databasecenter::V1beta::Service::SignalProductsFilters

SignalProductsFilters represents a signal and list of supported products.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Databasecenter::V1beta::Service::QueryIssuesResponse

QueryIssuesResponse is the response containing a list of issues.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Service::DatabaseResourceIssue)

    List of issues and resource details.

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

    Type: String

    A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

    Type: String

    Unordered list. List of unreachable regions from where data could not be retrieved.

Google::Cloud::Databasecenter::V1beta::Service::DatabaseResourceIssue

DatabaseResource and Issue associated with it.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Databasecenter::V1beta::Service::Tag

Tag is a key value pair attached to a resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

    Type: String

    The value part of the tag.

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

    Type: String

    The source of the tag. According to https://cloud.google.com/resource-manager/docs/tags/tags-overview#tags_and_labels, tags can be created only at the project or organization level. Tags can be inherited from different project as well not just the current project where the database resource is present. Format: "projects/{PROJECT_ID}", "projects/{PROJECT_NUMBER}", "organizations/{ORGANIZATION_ID}"

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

    Type: Bool

    Indicates the inheritance status of a tag value attached to the given resource. If the tag value is inherited from one of the resource's ancestors, inherited will be true. If false, then the tag value is directly attached to the resource.

Google::Cloud::Databasecenter::V1beta::Service::ResourceDetails

Capture the resource details for resources that are included in the delta counts.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Full resource name of the resource.

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

    Type: String

    Specifies where the resource is created. For Google Cloud resources, it is the full name of the project.

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

    Type: Message (Google::Cloud::Databasecenter::V1beta::Product::Product)

    Product type of the resource.

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

    Type: String

    Location of the resource.

Google::Cloud::Databasecenter::V1beta::Service::DeltaDetails

Captures the details of items that have increased or decreased in some bucket when compared to some point in history. It is currently used to capture the delta of resources that have been added or removed in the fleet as well as to capture the resources that have a change in Issue/Signal status.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Databasecenter::V1beta::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.