xref: /aosp_15_r20/external/googleapis/google/cloud/integrations/v1alpha/cloud_logging_details.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.integrations.v1alpha;
18
19import "google/api/field_behavior.proto";
20
21option csharp_namespace = "Google.Cloud.Integrations.V1Alpha";
22option go_package = "cloud.google.com/go/integrations/apiv1alpha/integrationspb;integrationspb";
23option java_multiple_files = true;
24option java_outer_classname = "CloudLoggingDetailsProto";
25option java_package = "com.google.cloud.integrations.v1alpha";
26
27// Cloud Logging details for execution info
28message CloudLoggingDetails {
29  // The severity will be mapped to the Integration Execution State.
30  enum CloudLoggingSeverity {
31    // Unspecified
32    CLOUD_LOGGING_SEVERITY_UNSPECIFIED = 0;
33
34    // If Severity selected is `INFO`, then all the Integration Execution States
35    // (`IN_PROCESS`, `ON_HOLD`, `SUCCEEDED`, `SUSPENDED`, `ERROR`, `CANCELLED`)
36    // will be sent to Cloud Logging.
37    INFO = 2;
38
39    // If Severity selected is `ERROR`, then only the following Integration
40    // Execution States (`ERROR`, `CANCELLED`) will be sent to Cloud Logging.
41    ERROR = 3;
42
43    // If Severity selected is `WARNING`, then only the following Integration
44    // Execution States (`ERROR`, `CANCELLED`) will be sent to Cloud Logging.
45    WARNING = 4;
46  }
47
48  // Optional. Severity selected by the customer for the logs to be sent to
49  // Cloud Logging, for the integration version getting executed.
50  optional CloudLoggingSeverity cloud_logging_severity = 1
51      [(google.api.field_behavior) = OPTIONAL];
52
53  // Optional. Status of whether Cloud Logging is enabled or not for the
54  // integration version getting executed.
55  optional bool enable_cloud_logging = 2
56      [(google.api.field_behavior) = OPTIONAL];
57}
58