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.dataform.logging.v1; 18 19import "google/api/field_behavior.proto"; 20 21option go_package = "cloud.google.com/go/dataform/logging/apiv1/loggingpb;loggingpb"; 22option java_multiple_files = true; 23option java_outer_classname = "LoggingProto"; 24option java_package = "com.google.cloud.dataform.logging.v1"; 25 26// Structured payload for logs generated from Dataform workflow invocation 27// completions. 28message WorkflowInvocationCompletionLogEntry { 29 // Represents the final termination state of a workflow invocation. 30 enum TerminalState { 31 // Default value. This value is unused. 32 TERMINAL_STATE_UNSPECIFIED = 0; 33 34 // The workflow invocation succeeded. 35 SUCCEEDED = 1; 36 37 // The workflow invocation was cancelled. 38 CANCELLED = 2; 39 40 // The workflow invocation failed. 41 FAILED = 3; 42 } 43 44 // Required. Identifier of the workflow invocation. 45 string workflow_invocation_id = 1 [(google.api.field_behavior) = REQUIRED]; 46 47 // Optional. Identifier of the workflow config. 48 string workflow_config_id = 2 [(google.api.field_behavior) = OPTIONAL]; 49 50 // Optional. Identifier of the release config. 51 string release_config_id = 3 [(google.api.field_behavior) = OPTIONAL]; 52 53 // Required. The workflow invocation's final termination state. 54 TerminalState terminal_state = 4 [(google.api.field_behavior) = REQUIRED]; 55} 56