@@ -53,7 +53,6 @@ message TestResult {
53
53
54
54
// A list of StackFrame messages that indicate a single trace of code.
55
55
repeated StackFrame stack_frames = 3 ;
56
-
57
56
// The raw stack trace associated with the error.
58
57
string stack_trace = 4 ;
59
58
}
@@ -88,7 +87,6 @@ message GenericResultV1 {
88
87
// The full error message. Eg. "The url that you are fetching failed DNS
89
88
// lookup".
90
89
string error_message = 2 ;
91
-
92
90
// The name of the function where the error occurred.
93
91
string function_name = 3 ;
94
92
// The name of the file that reported the error.
@@ -132,6 +130,14 @@ message ResponseStatusCode {
132
130
}
133
131
}
134
132
133
+ // Information on an error that occurred.
134
+ message BaseError {
135
+ // The name of the error.
136
+ string error_type = 1 ;
137
+ // The full error message.
138
+ string error_message = 2 ;
139
+ }
140
+
135
141
// Aggregate and individual results of a Broken Link Synthetic execution
136
142
message BrokenLinksResultV1 {
137
143
// the total number of links checked as part of the execution
@@ -198,12 +204,31 @@ message BrokenLinksResultV1 {
198
204
// the given specified link passed in "per_link_options" map.
199
205
optional int64 link_timeout_millis = 2 ;
200
206
}
207
+
201
208
// individual link options, default None. string must be formatted as a
202
209
// fully qualified url
203
210
map <string , PerLinkOption > per_link_options = 10 ;
204
-
205
211
// Timeout set for the entire Synthetic Monitor, default 60000 milliseconds
206
212
optional int64 total_synthetic_timeout_millis = 11 ;
213
+
214
+ // Required options for broken link checker screenshot capability.
215
+ message ScreenshotOptions {
216
+ // Input bucket or folder provided by the user.
217
+ string storage_location = 1 ;
218
+
219
+ enum CaptureCondition {
220
+ NONE = 0 ;
221
+ FAILING = 1 ;
222
+ ALL = 2 ;
223
+ }
224
+
225
+ // Controls when to capture screenshots during broken link checks, default
226
+ // is FAILING.
227
+ CaptureCondition capture_condition = 2 ;
228
+ }
229
+
230
+ // Screenshot options, default to 'FAILING' and synthetic wide bucket.
231
+ ScreenshotOptions screenshot_options = 12 ;
207
232
}
208
233
209
234
// Options set for broken link synthetic.
@@ -217,7 +242,7 @@ message BrokenLinksResultV1 {
217
242
ResponseStatusCode expected_status_code = 2 ;
218
243
// Source_uri from which the target_uri is navigated from.
219
244
string source_uri = 3 ;
220
- // target_uri navigated to from the source_uri.
245
+ // Target_uri navigated to from the source_uri.
221
246
string target_uri = 4 ;
222
247
// Anchor text on the source URI.
223
248
string anchor_text = 5 ;
@@ -235,15 +260,34 @@ message BrokenLinksResultV1 {
235
260
string link_start_time = 10 ;
236
261
// The end time of the link navigation in iso format.
237
262
string link_end_time = 11 ;
238
-
239
263
// These fields only apply to the origin link.
240
264
optional bool is_origin = 12 ;
265
+
266
+ // Result of Screenshot Upload to GCS.
267
+ message ScreenshotOutput {
268
+ // Name of screenshot_file.
269
+ string screenshot_file = 1 ;
270
+
271
+ // Error that occurred throughout screenshot workflow.
272
+ BaseError screenshot_error = 2 ;
273
+ }
274
+
275
+ // Output of screenshot upload attempt.
276
+ ScreenshotOutput screenshot_output = 13 ;
241
277
}
242
278
243
- // link result for origin_uri
279
+ // link result for origin_uri.
244
280
SyntheticLinkResult origin_link_result = 10 ;
245
- // link results for all scraped and followed links
281
+ // link results for all scraped and followed links.
246
282
repeated SyntheticLinkResult followed_link_results = 11 ;
283
+
284
+ // Path to the Cloud Storage folder where all artifacts (e.g. screenshots)
285
+ // will be stored for this execution. e.g.
286
+ // gs://<my_bucket_name/check-id-123/2024-01-01/123exec_id123/
287
+ string execution_data_storage_path = 12 ;
288
+
289
+ // Errors associated with the broken link checker execution.
290
+ repeated BaseError errors = 13 ;
247
291
}
248
292
249
293
message SyntheticResult {
@@ -257,7 +301,6 @@ message SyntheticResult {
257
301
// synthetic is running in, such as K_SERVICE, and K_REVISION for cloud run,
258
302
// SYNTHETIC_SDK_NPM_PACKAGE_VERSION for nodejs package.
259
303
map <string , string > runtime_metadata = 4 ;
260
-
261
304
// The start time of the synthetic in iso format.
262
305
string start_time = 5 ;
263
306
// The end time of the synthetic in iso format.
0 commit comments