Skip to content

Commit

Permalink
feat: Added BDR Protected Resource Log, BDR Backup Vault Details Log …
Browse files Browse the repository at this point in the history
…and updated BDRJobLogs

PiperOrigin-RevId: 697360498
  • Loading branch information
Google APIs authored and copybara-github committed Nov 17, 2024
1 parent 9077c0e commit 0b5613e
Showing 1 changed file with 97 additions and 2 deletions.
99 changes: 97 additions & 2 deletions google/cloud/backupdr/logging/v1/bdr_log.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ package google.cloud.backupdr.logging.v1;

import "google/protobuf/timestamp.proto";

option go_package =
"cloud.google.com/go/backupdr/logging/apiv1/loggingpb;loggingpb";
option go_package = "cloud.google.com/go/backupdr/logging/apiv1/loggingpb;loggingpb";
option java_multiple_files = true;

// Log entry for Backup and Restore Job for resources using BackupPlan based
Expand Down Expand Up @@ -80,4 +79,100 @@ message BDRBackupRestoreJobLog {

// The user readable error message. Only populated in error scenarios.
optional string error_message = 17;

// Backup consistency time.
optional google.protobuf.Timestamp backup_consistency_time = 18;

// Source resource location.
optional string source_resource_location = 19;

// Restore resource location.
optional string restore_resource_location = 20;
}

// Log entry for BDRProtectedResource Log for resources using BackupPlan based
// protection.
message BDRProtectedResourceLog {
// Full canonical source resource name.
optional string source_resource_name = 1;

// The source resource ID. Instance Id for GCE.
optional string source_resource_id = 2;

// Type of the resource. For eg. “Compute Engine”.
optional string resource_type = 3;

// The size of the protected source resource in GiB, rounded to 2 decimal
// places.
optional double source_resource_data_size_gib = 4;

// Complete canonical name of the Backup plan currently associated with the
// source resource.
optional string current_backup_plan_name = 5;

// Backup Rule details of the backup plan currently associated with the source
// resource.
repeated BackupRuleDetail current_backup_rule_details = 6;

// Timestamp when the resource was last protected.
optional google.protobuf.Timestamp last_protected_on = 7;

// Full Resource Name of the backup vault currently associated with the source
// resource.
optional string current_backup_vault_name = 8;

// Source resource_location
optional string source_resource_location = 9;
}

message BackupRuleDetail {
// Backup Rule Name.
optional string rule_name = 1;

// Backup Retention in Days.
optional int32 retention_days = 2;

// Recurrence Type. For Eg. “Weekly”,” Monthly” or “Daily”.
optional string recurrence = 3;

// Recurrence Repeat Schedule. For Eg. “1st and 25th day of the month.”
optional string recurrence_schedule = 4;

// Backup Window For Eg. “00:00 to 06:00”
optional string backup_window = 5;

// Backup Window Timezone in IANA format. For Eg. “America/Los_Angeles”
optional string backup_window_timezone = 6;
}

// Log entry for BDRBackupVaultDetails Log for resources using BackupPlan based
// protection.
message BDRBackupVaultDetailsLog {
// Relative resource name of Backup Vault
optional string backup_vault_name = 1;

// Relative source resource name
optional string source_resource_name = 2;

// Type of the resource For eg. “Compute Engine”
optional string resource_type = 3;

// The name of the Backup Plan applied on the resource to protect.
optional string current_backup_plan_name = 4;

// Timestamp when the first (oldest) backup was taken.
optional google.protobuf.Timestamp first_available_restore_point = 5;

// Timestamp when the latest backup was taken.
optional google.protobuf.Timestamp last_available_restore_point = 6;

// Amount of storage space consumed by backups in GiB.
optional double stored_bytes_gib = 7;

// The minimum timeframe in days that backups in that vault are being
// protected from deletion.
optional int32 minimum_enforced_retention_days = 8;

// Source resource_location
optional string source_resource_location = 9;
}

0 comments on commit 0b5613e

Please sign in to comment.