@@ -57,8 +57,13 @@ class Execution(proto.Message):
57
57
state (google.cloud.workflows.executions_v1.types.Execution.State):
58
58
Output only. Current state of the execution.
59
59
argument (str):
60
- Input parameters of the execution represented
61
- as a JSON string. The size limit is 32KB.
60
+ Input parameters of the execution represented as a JSON
61
+ string. The size limit is 32KB.
62
+
63
+ *Note*: If you are using the REST API directly to run your
64
+ workflow, you must escape any JSON string value of
65
+ ``argument``. Example:
66
+ ``'{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'``
62
67
result (str):
63
68
Output only. Output of the execution represented as a JSON
64
69
string. The value can only be present if the execution's
@@ -70,32 +75,101 @@ class Execution(proto.Message):
70
75
workflow_revision_id (str):
71
76
Output only. Revision of the workflow this
72
77
execution is using.
78
+ call_log_level (google.cloud.workflows.executions_v1.types.Execution.CallLogLevel):
79
+ The call logging level associated to this
80
+ execution.
73
81
"""
74
82
75
83
class State (proto .Enum ):
76
- r"""Describes the current state of the execution. More states may
77
- be added in the future.
84
+ r"""Describes the current state of the execution. More states
85
+ might be added in the future.
78
86
"""
79
87
STATE_UNSPECIFIED = 0
80
88
ACTIVE = 1
81
89
SUCCEEDED = 2
82
90
FAILED = 3
83
91
CANCELLED = 4
84
92
93
+ class CallLogLevel (proto .Enum ):
94
+ r"""Describes the level of platform logging to apply to calls and
95
+ call responses during workflow executions.
96
+ """
97
+ CALL_LOG_LEVEL_UNSPECIFIED = 0
98
+ LOG_ALL_CALLS = 1
99
+ LOG_ERRORS_ONLY = 2
100
+
101
+ class StackTraceElement (proto .Message ):
102
+ r"""A single stack element (frame) where an error occurred.
103
+
104
+ Attributes:
105
+ step (str):
106
+ The step the error occurred at.
107
+ routine (str):
108
+ The routine where the error occurred.
109
+ position (google.cloud.workflows.executions_v1.types.Execution.StackTraceElement.Position):
110
+ The source position information of the stack
111
+ trace element.
112
+ """
113
+
114
+ class Position (proto .Message ):
115
+ r"""Position contains source position information about the stack
116
+ trace element such as line number, column number and length of
117
+ the code block in bytes.
118
+
119
+ Attributes:
120
+ line (int):
121
+ The source code line number the current
122
+ instruction was generated from.
123
+ column (int):
124
+ The source code column position (of the line)
125
+ the current instruction was generated from.
126
+ length (int):
127
+ The number of bytes of source code making up
128
+ this stack trace element.
129
+ """
130
+
131
+ line = proto .Field (proto .INT64 , number = 1 ,)
132
+ column = proto .Field (proto .INT64 , number = 2 ,)
133
+ length = proto .Field (proto .INT64 , number = 3 ,)
134
+
135
+ step = proto .Field (proto .STRING , number = 1 ,)
136
+ routine = proto .Field (proto .STRING , number = 2 ,)
137
+ position = proto .Field (
138
+ proto .MESSAGE , number = 3 , message = "Execution.StackTraceElement.Position" ,
139
+ )
140
+
141
+ class StackTrace (proto .Message ):
142
+ r"""A collection of stack elements (frames) where an error
143
+ occurred.
144
+
145
+ Attributes:
146
+ elements (Sequence[google.cloud.workflows.executions_v1.types.Execution.StackTraceElement]):
147
+ An array of stack elements.
148
+ """
149
+
150
+ elements = proto .RepeatedField (
151
+ proto .MESSAGE , number = 1 , message = "Execution.StackTraceElement" ,
152
+ )
153
+
85
154
class Error (proto .Message ):
86
155
r"""Error describes why the execution was abnormally terminated.
87
156
88
157
Attributes:
89
158
payload (str):
90
- Error payload returned by the execution,
91
- represented as a JSON string.
159
+ Error message and data returned represented
160
+ as a JSON string.
92
161
context (str):
93
- Human readable error context, helpful for
94
- debugging purposes.
162
+ Human-readable stack trace string.
163
+ stack_trace (google.cloud.workflows.executions_v1.types.Execution.StackTrace):
164
+ Stack trace with detailed information of
165
+ where error was generated.
95
166
"""
96
167
97
168
payload = proto .Field (proto .STRING , number = 1 ,)
98
169
context = proto .Field (proto .STRING , number = 2 ,)
170
+ stack_trace = proto .Field (
171
+ proto .MESSAGE , number = 3 , message = "Execution.StackTrace" ,
172
+ )
99
173
100
174
name = proto .Field (proto .STRING , number = 1 ,)
101
175
start_time = proto .Field (proto .MESSAGE , number = 2 , message = timestamp_pb2 .Timestamp ,)
@@ -105,6 +179,7 @@ class Error(proto.Message):
105
179
result = proto .Field (proto .STRING , number = 6 ,)
106
180
error = proto .Field (proto .MESSAGE , number = 7 , message = Error ,)
107
181
workflow_revision_id = proto .Field (proto .STRING , number = 8 ,)
182
+ call_log_level = proto .Field (proto .ENUM , number = 9 , enum = CallLogLevel ,)
108
183
109
184
110
185
class ListExecutionsRequest (proto .Message ):
0 commit comments