xref: /aosp_15_r20/external/googleapis/google/cloud/backupdr/logging/v1/reportlog.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.backupdr.logging.v1;
18
19option go_package = "cloud.google.com/go/backupdr/logging/apiv1/loggingpb;loggingpb";
20option java_multiple_files = true;
21option java_outer_classname = "ReportLogProto";
22option java_package = "com.google.cloud.backupdr.logging.v1";
23option csharp_namespace = "Google.Cloud.BackupDR.Logging.V1";
24option php_namespace = "Google\\Cloud\\BackupDR\\Logging\\V1";
25option ruby_package = "Google::Cloud::BackupDR::Logging::V1";
26
27// This is a BackupRecoveryJobReportLog published as part of GCBDR Reporting.
28message BackupRecoveryJobReportLog {
29  // The job_name field displays the name of the job being reported.
30  string job_name = 1;
31
32  // The job_name field displays the category of the job whether it is Backup or
33  // Recovery Job.
34  string job_category = 2;
35
36  // The job_type field displays the type of the job.
37  string job_type = 3;
38
39  // The log_backup field displays whether the backup taken is only for logs, DB
40  // or both.
41  string log_backup = 4;
42
43  // The job_status field displays the status of the job.
44  string job_status = 5;
45
46  // The resource_name field displays the name of the resource.
47  string resource_name = 6;
48
49  // The resource_type field displays the type of the resource.
50  string resource_type = 7;
51
52  // The error_code field displays the error code.
53  int32 error_code = 8;
54
55  // The error_message field displays the error message if the job is not
56  // successful.
57  string error_message = 9;
58
59  // The job_initiation_failure_reason field displays the reason for failure,
60  // if the job was not run.
61  string job_initiation_failure_reason = 10;
62
63  // The job_start_time field displays the timestamp when the job started.
64  string job_start_time = 11;
65
66  // The job_end_time field displays the timestamp when the job ended.
67  string job_end_time = 12;
68
69  // The job_queued_time field displays the timestamp when the job was
70  // queued for running.
71  string job_queued_time = 13;
72
73  // The job_duration_in_hours field displays the duration in hours which the
74  // job took to complete.
75  double job_duration_in_hours = 14;
76
77  // The hostname field displays the name of the host.
78  string hostname = 15;
79
80  // The appliance_name field displays the name of the backup appliance.
81  string appliance_name = 16;
82
83  // The backup_rule_policy_name field displays the policy name which is
84  // associated with this job.
85  string backup_rule_policy_name = 17;
86
87  // The backup_plan_policy_template field displays the name of the backup plan
88  // for this application.
89  string backup_plan_policy_template = 18;
90
91  // The backup_type field displays the type of backup taken: Log, Incremental
92  // or Full Copy.
93  string backup_type = 19;
94
95  // The recovery_point field displays the timestamp of recovery point.
96  string recovery_point = 20;
97
98  // The backup_consistency field displays whether the backup is crash
99  // consistent or application consistent.
100  string backup_consistency = 21;
101
102  // The target_host_name field displays the target host name.
103  string target_host_name = 22;
104
105  // The target_appliance_name field displays the target appliance name.
106  string target_appliance_name = 23;
107
108  // The target_pool_name field displays target pool name.
109  string target_pool_name = 24;
110
111  // The resource_data_size_in_gib field displays resource data size in Gib.
112  double resource_data_size_in_gib = 25;
113
114  // The data_copied_in_gib field displays the amount of the data copied
115  // during backup in Gib.
116  double data_copied_in_gib = 26;
117
118  // The onvault_pool_storage_consumed_in_gib field displays the amount of
119  // onvault pool storage consumed in Gib.
120  double onvault_pool_storage_consumed_in_gib = 27;
121
122  // The pre_compress_in_gib field displays the size before compression in Gib.
123  double pre_compress_in_gib = 28;
124
125  // The compression_ratio field displays the ratio of post compression size to
126  // pre compression size.
127  double compression_ratio = 29;
128
129  // The data_change_rate field displays the percentage of data copied during
130  // backup to application size.
131  double data_change_rate = 30;
132
133  // The snapshot_disk_size_in_gib field displays the snapshot disk size in Gib.
134  double snapshot_disk_size_in_gib = 31;
135
136  // The data_written_in_gib field displays the amount of
137  // remote data written in Gib.
138  double data_written_in_gib = 32;
139
140  // The data_sent_in_gib field displays the amount of
141  // network data sent in Gib.
142  double data_sent_in_gib = 33;
143
144  // The job_id field displays the id of the job being reported.
145  string job_id = 34;
146
147  // The host_id field displays the host id.
148  string host_id = 35;
149
150  // The backup_rule_policy_id field displays the policy id.
151  string backup_rule_policy_id = 36;
152
153  // The resource_id field displays the resource id.
154  string resource_id = 37;
155
156  // The target_pool_id field displays the target pool id.
157  string target_pool_id = 38;
158
159  // The target_host_id field displays the target host id.
160  string target_host_id = 39;
161
162  // The target_appliance_id field displays the target appliance id.
163  string target_appliance_id = 40;
164}
165
166// This is a UnprotectedResourceLogReport published as part of GCBDR
167// Reporting.
168message UnprotectedResourceReportLog {
169  // Required. Name of the host where the application/resource resides.
170  string host_name = 1;
171
172  // Required. Name of the application/resource.
173  string resource_name = 2;
174
175  // Required. Type of the application/resource.
176  string resource_type = 3;
177
178  // Optional. Name of the database instance for instance members.
179  string instance_name = 4;
180
181  // Required. Date when the Appliance was Discovered first.
182  string discovered_on = 5;
183
184  // Required. Name of the appliance on which it was discovered.
185  string discovered_by = 6;
186
187  // Required. Id of the Appliance
188  string appliance_id = 7;
189
190  // Required. Id of the application/resource
191  string resource_id = 8;
192
193  // Required. Id of the Host where the application/resource resides.
194  string host_id = 9;
195}
196
197// This is a DailyScheduleComplianceReportLog published as part of GCBDR
198// Reporting.
199message DailyScheduleComplianceReportLog {
200  // Required. Resource/App Name.
201  string resource_name = 1;
202
203  // Required. Resource/App Type.
204  string resource_type = 2;
205
206  // Required. Policy Name.
207  string backup_rule_policy_name = 3;
208
209  // Required. Policy Template Name.
210  string backup_plan_policy_template = 4;
211
212  // Required. Name of the host where the app/resource resides.
213  string host_name = 5;
214
215  // Required. Appliance Name.
216  string appliance_name = 6;
217
218  // Required. Date for which compliance is being reported.
219  string date = 7;
220
221  // Required. Backup Window Start time.
222  string backup_window_start_time = 8;
223
224  // Required. JobType of the policy.
225  string job_type = 9;
226
227  // Required. Compliance status for the policy.
228  string status = 10;
229
230  // Required. Description for the status reason.
231  string comment = 11;
232
233  // Required. Resource/App Id.
234  string resource_id = 12;
235
236  // Required. Host Id.
237  string host_id = 13;
238
239  // Required. Policy Template Id
240  string backup_plan_policy_template_id = 14;
241
242  // Required. Policy Id.
243  string backup_rule_policy_id = 15;
244
245  // Required. Appliance Id.
246  string appliance_id = 16;
247}
248
249// This is a BackupStorageUtilizationReportLog published as part of GCBDR
250// Reporting.
251message BackupStorageUtilizationReportLog {
252  // Optional. The appliance name.
253  string appliance_name = 1;
254
255  // Required. The storage resource type.
256  string storage_type = 2;
257
258  // Required. The storage pool name.
259  string pool_name = 3;
260
261  // Required. Total capacity of the pool in GiB.
262  double total_capacity_in_gib = 4;
263
264  // Required. Used capacity of the pool in GiB.
265  double used_capacity_in_gib = 5;
266
267  // Required. Utilization percentage of a storage pool.
268  double utilization_percentage = 6;
269
270  // Required. Appliance id.
271  string appliance_id = 7;
272}
273
274// Holds information for the Protected Resource
275message ProtectedResource {
276  // Required. Resource name.
277  string resource_name = 1;
278  // Required. Resource Type.
279  string resource_type = 2;
280  // Required. Resource ID.
281  string resource_id = 3;
282  // Optional. Backup Inclusion/Exclusion.
283  string backup_inclusion_or_exclusion = 4;
284  // Required. Host Id.
285  string host_id = 5;
286  // Required. Host Name.
287  string host_name = 6;
288  // Required. Backup Template ID.
289  string backup_plan_policy_template_id = 7;
290  // Required. Backup Template.
291  string backup_plan_policy_template = 8;
292  // Required. Sla Id.
293  string sla_id = 9;
294  // Required. Backup Plan restrictions.
295  string backup_plan_restrictions = 10;
296  // Required. Protected On.
297  string protected_on = 11;
298  // Optional. Policy Overrides.
299  string policy_overrides = 12;
300  // Optional. Source Appliance in case of streamsnap.
301  string source_appliance = 13;
302  // Optional. Source Appliance Id in case of streamsnap.
303  string source_appliance_id = 14;
304  // Required. Protected Data (GiB).
305  double protected_data_in_gib = 15;
306  // Optional. Onvault (GiB) .
307  double onvault_in_gib = 16;
308  // Optional. Originating Appliance in case of streamsnap.
309  string appliance_name = 17;
310  // Optional. Originating Appliance id in case of streamsnap.
311  string appliance_id = 18;
312  // Optional. Remote Appliance in case of streamsnap.
313  string remote_appliance = 19;
314  // Optional. Remote Appliance id in case of streamsnap.
315  string remote_appliance_id = 20;
316  // Optional. Recovery Point.
317  string recovery_point = 21;
318}
319