- JSON representation
- Label
- Tag
- MachineConfig
- SignalGroup
- Metrics
- MetricData
- TypedValue
- BackupDRConfig
- MaintenanceInfo
- ResourceMaintenanceDenySchedule
DatabaseResource represents every individually configured database unit representing compute and/or storage.
| JSON representation |
|---|
{ "childResources": [ { object ( |
| Fields | |
|---|---|
childResources[] |
List of children associated with a database group. |
fullResourceName |
The full resource name, based on CAIS resource name format https://cloud.google.com/asset-inventory/docs/resource-name-format Example:
|
container |
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project. |
product |
The product this resource represents. |
location |
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. |
labels[] |
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 |
tags[] |
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 |
resourceType |
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 |
subResourceType |
Subtype of the resource specified at creation time. |
machineConfig |
Machine configuration like CPU, memory, etc for the resource. |
signalGroups[] |
The list of signal groups and count of issues related to the resource. Only those signals which have been requested would be included. |
metrics |
Observable metrics for the resource e.g. CPU utilization, memory utilization, etc. |
resourceCategory |
The category of the resource. |
resourceName |
The name of the resource(The last part of the full resource name). Example: For full resource name - |
backupdrConfig |
Optional. Backup and disaster recovery details for the resource. |
edition |
The edition of the resource. |
maintenanceInfo |
Optional. The maintenance information of the resource. |
Label
Label is a key value pair applied to a resource.
| JSON representation |
|---|
{ "key": string, "value": string, "source": string } |
| Fields | |
|---|---|
key |
The key part of the label. |
value |
The value part of the label. |
source |
The source of the Label. Source is empty if the label is directly attached to the resource and not inherited. |
Tag
Tag is a key value pair attached to a resource.
| JSON representation |
|---|
{ "key": string, "value": string, "source": string, "inherited": boolean } |
| Fields | |
|---|---|
key |
|
value |
The value part of the tag. |
source |
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}" |
inherited |
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. |
MachineConfig
MachineConfig describes the configuration of a machine specific to a Database Resource.
| JSON representation |
|---|
{ "memorySizeBytes": string, "shardCount": integer, "vcpuCount": number } |
| Fields | |
|---|---|
memorySizeBytes |
Memory size in bytes. |
shardCount |
Optional. The number of Shards (if applicable). |
vcpuCount |
Optional. The number of vCPUs (if applicable). |
SignalGroup
A group of signals and their counts.
| JSON representation |
|---|
{
"displayName": string,
"issueCount": integer,
"signals": [
{
object ( |
| Fields | |
|---|---|
displayName |
Title of a signal group corresponding to the request. |
issueCount |
When applied to a DatabaseResource represents count of issues associated with the resource. A signal is an issue when its SignalStatus field is set to SIGNAL_STATUS_ISSUE. |
signals[] |
List of signals present in the group and associated with the resource. Only applies to a DatabaseResource. |
Metrics
Metrics represents the metrics for a database resource.
| JSON representation |
|---|
{ "p99CpuUtilization": { object ( |
| Fields | |
|---|---|
p99CpuUtilization |
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). |
p95CpuUtilization |
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). |
currentStorageUsedBytes |
Current storage used by the resource in bytes. |
peakStorageUtilization |
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). |
peakMemoryUtilization |
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). |
peakNumberConnections |
Peak number of connections observed for the resource. The value is a positive integer. |
nodeCount |
Number of nodes in instance for spanner or bigtable. |
processingUnitCount |
Number of processing units in spanner. |
currentMemoryUsedBytes |
Current memory used by the resource in bytes. |
MetricData
MetricData represents the metric data for a database resource.
| JSON representation |
|---|
{
"value": {
object ( |
| Fields | |
|---|---|
value |
The value associated with the metric. |
observationTime |
The time the metric was observed in the metric source service. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
TypedValue
TypedValue represents the value of the metric based on data type.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field value. The data type of metric value would be chosen based on the metric type. value can be only one of the following: |
|
doubleValue |
The value of the metric as double. |
int64Value |
The value of the metric as int. |
BackupDRConfig
BackupDRConfig to capture the backup and disaster recovery details of database resource.
| JSON representation |
|---|
{ "backupdrManaged": boolean } |
| Fields | |
|---|---|
backupdrManaged |
Indicates if the resource is managed by BackupDR. |
MaintenanceInfo
MaintenanceInfo to capture the maintenance details of database resource.
| JSON representation |
|---|
{ "maintenanceSchedule": { object ( |
| Fields | |
|---|---|
maintenanceSchedule |
Optional. Maintenance window for the database resource. |
denyMaintenanceSchedules[] |
Optional. List of Deny maintenance period for the database resource. |
maintenanceVersion |
Output only. Current Maintenance version of the database resource. Example: "MYSQL_8_0_41.R20250531.01_15" |
ResourceMaintenanceDenySchedule
Deny maintenance period for the database resource. It specifies the time range during which the maintenance cannot start. This is configured by the customer.
| JSON representation |
|---|
{ "startDate": { object ( |
| Fields | |
|---|---|
startDate |
Optional. The start date of the deny maintenance period. |
endDate |
Optional. Deny period end date. |
time |
Optional. Time in UTC when the deny period starts on startDate and ends on endDate. |