xref: /aosp_15_r20/external/googleapis/google/cloud/dataproc/logging/reconciler_log.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.dataproc.logging;
18
19import "google/protobuf/duration.proto";
20
21option csharp_namespace = "Google.Cloud.Dataproc.Logging";
22option go_package = "cloud.google.com/go/dataproc/logging/loggingpb;loggingpb";
23option java_multiple_files = true;
24option java_outer_classname = "ReconcilerLogProto";
25option java_package = "com.google.cloud.dataproc.logging";
26
27// Reconciliation log for session ttl event.
28message ReconciliationLog {
29  // The input values for the Reconciler recommendation algorithm.
30  // We could add more details in future if required.
31  message Inputs {
32    // Idle duration
33    google.protobuf.Duration idle_duration = 1;
34
35    // Configured idle TTL
36    google.protobuf.Duration idle_ttl = 2;
37
38    // Total session lifetime
39    google.protobuf.Duration session_lifetime = 3;
40
41    // Configured ttl
42    google.protobuf.Duration ttl = 4;
43  }
44
45  // Reconciler recommendations.
46  message Outputs {
47    // The high-level reconciliation decision.
48    ReconciliationDecisionType decision = 1;
49
50    // Human readable context messages which explain the reconciler decision.
51    string decision_details = 2;
52  }
53
54  // The reconciliation algorithm inputs.
55  Inputs inputs = 1;
56
57  // The algorithm outputs for the recommended reconciliation operation.
58  Outputs outputs = 2;
59}
60
61// Reconciliation log for cluster heal event.
62message ReconciliationClusterHealLog {
63  // Autohealer decision.
64  message Outputs {
65    // The repair operation id triggered by Autohealer if any.
66    string repair_operation_id = 1;
67
68    // Human readable context messages which explain the autohealer decision.
69    string decision_details = 2;
70  }
71
72  // The algorithm outputs for the recommended reconciliation operation.
73  Outputs outputs = 1;
74}
75
76// Decision type
77enum ReconciliationDecisionType {
78  // Unspecified type
79  RECONCILIATION_DECISION_TYPE_UNSPECIFIED = 0;
80
81  // Terminate session
82  RECONCILIATION_TERMINATE_SESSION = 1;
83}
84