- JSON representation
- AdditionalDetail
- RetentionSettingsInfo
- SubResource
- BackupRunInfo
- State
- OperationErrorType
- SCCInfo
- RegulatoryStandard
- RecommendationInfo
- AutomatedBackupPolicyInfo
- DeletionProtectionInfo
- ResourceSuspensionInfo
- SuspensionReason
- InefficientQueryInfo
- OutdatedMinorVersionInfo
- MaintenanceRecommendationInfo
- SignalSource
Represents a signal.
| JSON representation |
|---|
{ "signalType": enum ( |
| Fields | |
|---|---|
signalType |
Type of the signal. |
signalStatus |
Status of the signal. |
additionalDetails[] |
Additional information related to the signal. In the case of composite signals, this field encapsulates details associated with granular signals, having a signal status of "ISSUE"; signals with a status of "OK" are not included. For granular signals, it encompasses information relevant to the signal, regardless of the signal status. |
issueSeverity |
Severity of the issue. |
issueCreateTime |
Timestamp when the issue was created (when signal status is ISSUE). 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: |
AdditionalDetail
Details related to signal.
| JSON representation |
|---|
{ "signalSource": enum ( |
| Fields | |
|---|---|
signalSource |
Where the signal is coming from. |
signalType |
Type of the signal. |
signalEventTime |
Event time when signal was recorded by 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: |
Union field detail. Details related to signal. detail can be only one of the following: |
|
shortBackupRetentionInfo |
Short backup retention information applies to signals with type SIGNAL_TYPE_SHORT_BACKUP_RETENTION. |
backupRunInfo |
Backup run information applies to signals with types SIGNAL_TYPE_LAST_BACKUP_FAILED and SIGNAL_TYPE_LAST_BACKUP_OLD. |
sccInfo |
SCC information applies to SCC signals. |
recommendationInfo |
Recommendation information applies to recommendations. |
automatedBackupPolicyInfo |
Automated backup policy information applies to signals with type SIGNAL_TYPE_NO_AUTOMATED_BACKUP_POLICY. |
deletionProtectionInfo |
Deletion protection information applies to signals with type |
resourceSuspensionInfo |
Resource suspension information applies to signals with type |
inefficientQueryInfo |
Inefficient query information applies to signals with type |
outdatedMinorVersionInfo |
Outdated minor version information applies to signals with type SIGNAL_TYPE_OUTDATED_MINOR_VERSION. |
maintenanceRecommendationInfo |
Maintenance recommendation information applies to signals with type SIGNAL_TYPE_RECOMMENDED_MAINTENANCE_POLICIES. |
RetentionSettingsInfo
Metadata about backup retention settings for a database resource.
| JSON representation |
|---|
{ "subResource": { object ( |
| Fields | |
|---|---|
subResource |
Optional. Sub resource details associated with the backup configuration. |
Union field retention. Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups. retention can be only one of the following: |
|
quantityBasedRetention |
Number of backups that will be retained. |
durationBasedRetention |
Duration based retention period i.e. 172800 seconds (2 days) A duration in seconds with up to nine fractional digits, ending with ' |
timestampBasedRetentionTime |
Timestamp based retention period i.e. till 2024-05-01T00:00:00Z 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: |
SubResource
Sub resource details For Spanner/Bigtable instance certain data protection settings are at sub resource level like database/table. This message is used to capture such sub resource details.
| JSON representation |
|---|
{
"resourceType": string,
"fullResourceName": string,
"product": {
object ( |
| Fields | |
|---|---|
resourceType |
Optional. Resource type associated with the sub resource where backup settings are configured. E.g. "spanner.googleapis.com/Database" for Spanner where backup retention is configured on database within an instance OPTIONAL |
fullResourceName |
Optional. Resource name associated with the sub resource where backup settings are configured. E.g."//spanner.googleapis.com/projects/project1/instances/inst1/databases/db1" for Spanner where backup retention is configured on database within an instance OPTIONAL |
product |
Optional. Product information associated with the sub resource where backup retention settings are configured. e.g. for Spanner where backup is configured on database within an instance OPTIONAL |
container |
Specifies where the resource is created. For Google Cloud resources, it is the full name of the project. |
BackupRunInfo
Metadata about latest backup run state for a database resource.
| JSON representation |
|---|
{ "startTime": string, "endTime": string, "state": enum ( |
| Fields | |
|---|---|
startTime |
The time the backup operation started. 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: |
endTime |
The time the backup operation completed. 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: |
state |
Output only. The state of this run. |
errorMessage |
Additional information about the error encountered. |
operationErrorType |
Optional. OperationErrorType to expose specific error when backup operation of database resource failed, that is state is FAILED. |
subResource |
Optional. Sub resource details associated with the backup run. |
State
The status of a backup run.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Unspecified. |
SUCCEEDED |
The backup succeeded. |
FAILED |
The backup was unsuccessful. |
OperationErrorType
OperationErrorType is used to expose specific error type which can happen in database resource while performing an operation. For example, an error can happen while database resource being backed up.
| Enums | |
|---|---|
OPERATION_ERROR_TYPE_UNSPECIFIED |
UNSPECIFIED means operation error type is not known or available. |
KMS_KEY_ERROR |
Key destroyed, expired, not found, unreachable or permission denied. |
DATABASE_ERROR |
Database is not accessible. |
STOCKOUT_ERROR |
The zone or region does not have sufficient resources to handle the request at the moment. |
CANCELLATION_ERROR |
User initiated cancellation. |
SQLSERVER_ERROR |
SQL server specific error. |
INTERNAL_ERROR |
Any other internal error. |
SCCInfo
Info associated with SCC signals.
| JSON representation |
|---|
{
"signal": string,
"category": string,
"regulatoryStandards": [
{
object ( |
| Fields | |
|---|---|
signal |
Name of the signal. |
category |
Name by which SCC calls this signal. |
regulatoryStandards[] |
Compliances that are associated with the signal. |
externalUri |
External URI which points to a SCC page associated with the signal. |
RegulatoryStandard
Compliances associated with signals.
| JSON representation |
|---|
{ "standard": string, "version": string } |
| Fields | |
|---|---|
standard |
Name of industry compliance standards, such as such as CIS, PCI, and OWASP. |
version |
Version of the standard or benchmark, for example, 1.1. |
RecommendationInfo
Info associated with recommendation.
| JSON representation |
|---|
{ "recommender": string, "recommenderId": string, "recommenderSubtype": string } |
| Fields | |
|---|---|
recommender |
Name of recommendation. Examples: organizations/1234/locations/us-central1/recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/9876 |
recommenderId |
ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender" |
recommenderSubtype |
Contains an identifier for a subtype of recommendations produced for the same recommender. Subtype is a function of content and impact, meaning a new subtype might be added when significant changes to Examples: For recommender = "google.cloudsql.instance.PerformanceRecommender", recommenderSubtype can be "MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/"POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" |
AutomatedBackupPolicyInfo
Automated backup policy signal info
| JSON representation |
|---|
{
"subResource": {
object ( |
| Fields | |
|---|---|
subResource |
Optional. Sub resource details associated with the signal. |
isEnabled |
Is automated policy enabled. |
DeletionProtectionInfo
Deletion protection signal info for a database resource.
| JSON representation |
|---|
{
"subResource": {
object ( |
| Fields | |
|---|---|
subResource |
Optional. Sub resource details associated with the signal. |
deletionProtectionEnabled |
Is deletion protection enabled. |
ResourceSuspensionInfo
Resource suspension info for a database resource.
| JSON representation |
|---|
{
"resourceSuspended": boolean,
"suspensionReason": enum ( |
| Fields | |
|---|---|
resourceSuspended |
Is resource suspended. |
suspensionReason |
Suspension reason for the resource. |
SuspensionReason
The reason for suspension of the database resource.
| Enums | |
|---|---|
SUSPENSION_REASON_UNSPECIFIED |
Suspension reason is unspecified. |
WIPEOUT_HIDE_EVENT |
Wipeout hide event. |
WIPEOUT_PURGE_EVENT |
Wipeout purge event. |
BILLING_DISABLED |
Billing disabled for project |
ABUSER_DETECTED |
Abuse detected for resource |
ENCRYPTION_KEY_INACCESSIBLE |
Encryption key inaccessible. |
REPLICATED_CLUSTER_ENCRYPTION_KEY_INACCESSIBLE |
Replicated cluster encryption key inaccessible. |
InefficientQueryInfo
Metadata about inefficient query signal info for a database resource.
| JSON representation |
|---|
{ "database": string, "table": string, "sqlIndexStatement": string, "storageCostBytes": string, "impactedQueriesCount": string } |
| Fields | |
|---|---|
database |
Name of the database where index is required. For example, "db1", which is the name of the database present in the instance. |
table |
Name of the table where index is required |
sqlIndexStatement |
SQL statement of the index. Based on the ddl type, this will be either CREATE INDEX or DROP INDEX. |
storageCostBytes |
Cost of additional disk usage in bytes |
impactedQueriesCount |
Count of queries to be impacted if index is applied |
OutdatedMinorVersionInfo
Info associated with outdated minor version.
| JSON representation |
|---|
{ "recommendedMinorVersion": string } |
| Fields | |
|---|---|
recommendedMinorVersion |
Recommended minor version of the underlying database engine. Example values: For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", "15.5" etc. |
MaintenanceRecommendationInfo
Info associated with maintenance recommendation.
| JSON representation |
|---|
{
"resourceMaintenanceSchedules": [
{
object ( |
| Fields | |
|---|---|
resourceMaintenanceSchedules[] |
Optional. List of recommended maintenance schedules for the database resource. |
SignalSource
Represents the source system from where a signal comes from. More enum values are expected to be added as needed.
| Enums | |
|---|---|
SIGNAL_SOURCE_UNSPECIFIED |
Unspecified. |
SIGNAL_SOURCE_RESOURCE_METADATA |
Signal comes from resource metadata. |
SIGNAL_SOURCE_SECURITY_FINDINGS |
Signal comes from SCC findings. |
SIGNAL_SOURCE_RECOMMENDER |
Signal comes from recommender hub. |
SIGNAL_SOURCE_MODERN_OBSERVABILITY |
Signal comes from modern observability platform. |