@alis-build/alis-build-v1 1.17.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,27 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
|
|
2
2
|
// @generated from file alis/build/v1/monitoring.proto (package alis.build.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
+
// Manages the Git repositories of an Alis Build landing zone and searches
|
|
6
|
+
// the logs of Google Cloud projects.
|
|
7
|
+
//
|
|
8
|
+
// The package has two services:
|
|
9
|
+
//
|
|
10
|
+
// - `Monitoring` searches the log entries of a Google Cloud project over a
|
|
11
|
+
// time range (`SearchLogs`). Entries follow the shape of a Cloud Logging
|
|
12
|
+
// `LogEntry`, and `SearchLogsRequest.Severity` uses the same levels and
|
|
13
|
+
// numbers as `google.logging.type.LogSeverity`.
|
|
14
|
+
// - `Repos` works with the Git repositories of a landing zone: list
|
|
15
|
+
// repositories; create, list and delete branches; commit file changes; list
|
|
16
|
+
// commits and files; and read a file at a given ref.
|
|
17
|
+
//
|
|
18
|
+
// Repositories are identified as `{landing_zone_id}/{repo}`, e.g.
|
|
19
|
+
// `alistest/proto`. `SearchLogs` paginates with page tokens, while
|
|
20
|
+
// `ListBranches` and `ListCommits` take a `limit` and a 1-indexed `page`.
|
|
21
|
+
//
|
|
22
|
+
// Both files set `(alis.open.options.v1.file).json_schema.generate`, so a
|
|
23
|
+
// JSON Schema is generated for every message in the package.
|
|
24
|
+
|
|
5
25
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
26
|
import type { Message } from "@bufbuild/protobuf";
|
|
7
27
|
|
|
@@ -11,70 +31,104 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
11
31
|
export declare const file_alis_build_v1_monitoring: GenFile;
|
|
12
32
|
|
|
13
33
|
/**
|
|
34
|
+
* Request message for `SearchLogs`.
|
|
35
|
+
*
|
|
14
36
|
* @generated from message alis.build.v1.SearchLogsRequest
|
|
15
37
|
*/
|
|
16
38
|
export declare type SearchLogsRequest = Message<"alis.build.v1.SearchLogsRequest"> & {
|
|
17
39
|
/**
|
|
40
|
+
* The google cloud project id.
|
|
41
|
+
*
|
|
18
42
|
* @generated from field: string project_id = 1;
|
|
19
43
|
*/
|
|
20
44
|
projectId: string;
|
|
21
45
|
|
|
22
46
|
/**
|
|
47
|
+
* The start time of the query in RFC3339 format.
|
|
48
|
+
* E.g. "2022-01-01T00:00:00Z"
|
|
49
|
+
*
|
|
23
50
|
* @generated from field: string start_time = 2;
|
|
24
51
|
*/
|
|
25
52
|
startTime: string;
|
|
26
53
|
|
|
27
54
|
/**
|
|
55
|
+
* The end time of the query in RFC3339 format.
|
|
56
|
+
* E.g. "2022-01-02T00:00:00Z"
|
|
57
|
+
*
|
|
28
58
|
* @generated from field: string end_time = 3;
|
|
29
59
|
*/
|
|
30
60
|
endTime: string;
|
|
31
61
|
|
|
32
62
|
/**
|
|
63
|
+
* The severity of logs to search for. If empty, no severity filtering is done.
|
|
64
|
+
*
|
|
33
65
|
* @generated from field: alis.build.v1.SearchLogsRequest.Severity severity = 4;
|
|
34
66
|
*/
|
|
35
67
|
severity: SearchLogsRequest_Severity;
|
|
36
68
|
|
|
37
69
|
/**
|
|
70
|
+
* Maximum number of entries to return. If 0, the server picks a default.
|
|
71
|
+
*
|
|
38
72
|
* @generated from field: int32 page_size = 5;
|
|
39
73
|
*/
|
|
40
74
|
pageSize: number;
|
|
41
75
|
|
|
42
76
|
/**
|
|
77
|
+
* The next_page_token from a previous response, to get the next page.
|
|
78
|
+
* All other fields must match that previous request.
|
|
79
|
+
*
|
|
43
80
|
* @generated from field: string page_token = 6;
|
|
44
81
|
*/
|
|
45
82
|
pageToken: string;
|
|
46
83
|
};
|
|
47
84
|
|
|
48
85
|
/**
|
|
86
|
+
* Request message for `SearchLogs`.
|
|
87
|
+
*
|
|
49
88
|
* @generated from message alis.build.v1.SearchLogsRequest
|
|
50
89
|
*/
|
|
51
90
|
export declare type SearchLogsRequestJson = {
|
|
52
91
|
/**
|
|
92
|
+
* The google cloud project id.
|
|
93
|
+
*
|
|
53
94
|
* @generated from field: string project_id = 1;
|
|
54
95
|
*/
|
|
55
96
|
projectId?: string;
|
|
56
97
|
|
|
57
98
|
/**
|
|
99
|
+
* The start time of the query in RFC3339 format.
|
|
100
|
+
* E.g. "2022-01-01T00:00:00Z"
|
|
101
|
+
*
|
|
58
102
|
* @generated from field: string start_time = 2;
|
|
59
103
|
*/
|
|
60
104
|
startTime?: string;
|
|
61
105
|
|
|
62
106
|
/**
|
|
107
|
+
* The end time of the query in RFC3339 format.
|
|
108
|
+
* E.g. "2022-01-02T00:00:00Z"
|
|
109
|
+
*
|
|
63
110
|
* @generated from field: string end_time = 3;
|
|
64
111
|
*/
|
|
65
112
|
endTime?: string;
|
|
66
113
|
|
|
67
114
|
/**
|
|
115
|
+
* The severity of logs to search for. If empty, no severity filtering is done.
|
|
116
|
+
*
|
|
68
117
|
* @generated from field: alis.build.v1.SearchLogsRequest.Severity severity = 4;
|
|
69
118
|
*/
|
|
70
119
|
severity?: SearchLogsRequest_SeverityJson;
|
|
71
120
|
|
|
72
121
|
/**
|
|
122
|
+
* Maximum number of entries to return. If 0, the server picks a default.
|
|
123
|
+
*
|
|
73
124
|
* @generated from field: int32 page_size = 5;
|
|
74
125
|
*/
|
|
75
126
|
pageSize?: number;
|
|
76
127
|
|
|
77
128
|
/**
|
|
129
|
+
* The next_page_token from a previous response, to get the next page.
|
|
130
|
+
* All other fields must match that previous request.
|
|
131
|
+
*
|
|
78
132
|
* @generated from field: string page_token = 6;
|
|
79
133
|
*/
|
|
80
134
|
pageToken?: string;
|
|
@@ -87,56 +141,81 @@ export declare type SearchLogsRequestJson = {
|
|
|
87
141
|
export declare const SearchLogsRequestSchema: GenMessage<SearchLogsRequest, {jsonType: SearchLogsRequestJson}>;
|
|
88
142
|
|
|
89
143
|
/**
|
|
144
|
+
* The severity level of a log entry. The values and their numbers match
|
|
145
|
+
* `google.logging.type.LogSeverity`.
|
|
146
|
+
*
|
|
90
147
|
* @generated from enum alis.build.v1.SearchLogsRequest.Severity
|
|
91
148
|
*/
|
|
92
149
|
export enum SearchLogsRequest_Severity {
|
|
93
150
|
/**
|
|
151
|
+
* No assigned severity level. As the `severity` filter of a
|
|
152
|
+
* `SearchLogsRequest`, it means no severity filtering is done.
|
|
153
|
+
*
|
|
94
154
|
* @generated from enum value: DEFAULT = 0;
|
|
95
155
|
*/
|
|
96
156
|
DEFAULT = 0,
|
|
97
157
|
|
|
98
158
|
/**
|
|
159
|
+
* Information useful for debugging or tracing.
|
|
160
|
+
*
|
|
99
161
|
* @generated from enum value: DEBUG = 100;
|
|
100
162
|
*/
|
|
101
163
|
DEBUG = 100,
|
|
102
164
|
|
|
103
165
|
/**
|
|
166
|
+
* Routine, expected status or performance information.
|
|
167
|
+
*
|
|
104
168
|
* @generated from enum value: INFO = 200;
|
|
105
169
|
*/
|
|
106
170
|
INFO = 200,
|
|
107
171
|
|
|
108
172
|
/**
|
|
173
|
+
* Normal, but significant operational events (e.g., startups/shutdowns).
|
|
174
|
+
*
|
|
109
175
|
* @generated from enum value: NOTICE = 300;
|
|
110
176
|
*/
|
|
111
177
|
NOTICE = 300,
|
|
112
178
|
|
|
113
179
|
/**
|
|
180
|
+
* Warning events that might escalate into problems.
|
|
181
|
+
*
|
|
114
182
|
* @generated from enum value: WARNING = 400;
|
|
115
183
|
*/
|
|
116
184
|
WARNING = 400,
|
|
117
185
|
|
|
118
186
|
/**
|
|
187
|
+
* Error events likely to cause problems or localized failures.
|
|
188
|
+
*
|
|
119
189
|
* @generated from enum value: ERROR = 500;
|
|
120
190
|
*/
|
|
121
191
|
ERROR = 500,
|
|
122
192
|
|
|
123
193
|
/**
|
|
194
|
+
* Severe problems, outages, or vulnerabilities.
|
|
195
|
+
*
|
|
124
196
|
* @generated from enum value: CRITICAL = 600;
|
|
125
197
|
*/
|
|
126
198
|
CRITICAL = 600,
|
|
127
199
|
|
|
128
200
|
/**
|
|
201
|
+
* Immediate human action and intervention is required.
|
|
202
|
+
*
|
|
129
203
|
* @generated from enum value: ALERT = 700;
|
|
130
204
|
*/
|
|
131
205
|
ALERT = 700,
|
|
132
206
|
|
|
133
207
|
/**
|
|
208
|
+
* Extreme critical event; one or more systems are entirely unusable.
|
|
209
|
+
*
|
|
134
210
|
* @generated from enum value: EMERGENCY = 800;
|
|
135
211
|
*/
|
|
136
212
|
EMERGENCY = 800,
|
|
137
213
|
}
|
|
138
214
|
|
|
139
215
|
/**
|
|
216
|
+
* The severity level of a log entry. The values and their numbers match
|
|
217
|
+
* `google.logging.type.LogSeverity`.
|
|
218
|
+
*
|
|
140
219
|
* @generated from enum alis.build.v1.SearchLogsRequest.Severity
|
|
141
220
|
*/
|
|
142
221
|
export declare type SearchLogsRequest_SeverityJson = "DEFAULT" | "DEBUG" | "INFO" | "NOTICE" | "WARNING" | "ERROR" | "CRITICAL" | "ALERT" | "EMERGENCY";
|
|
@@ -147,30 +226,42 @@ export declare type SearchLogsRequest_SeverityJson = "DEFAULT" | "DEBUG" | "INFO
|
|
|
147
226
|
export declare const SearchLogsRequest_SeveritySchema: GenEnum<SearchLogsRequest_Severity, SearchLogsRequest_SeverityJson>;
|
|
148
227
|
|
|
149
228
|
/**
|
|
229
|
+
* Response message for `SearchLogs`.
|
|
230
|
+
*
|
|
150
231
|
* @generated from message alis.build.v1.SearchLogsResponse
|
|
151
232
|
*/
|
|
152
233
|
export declare type SearchLogsResponse = Message<"alis.build.v1.SearchLogsResponse"> & {
|
|
153
234
|
/**
|
|
235
|
+
* The matching log entries, ordered oldest to newest.
|
|
236
|
+
*
|
|
154
237
|
* @generated from field: repeated alis.build.v1.SearchLogsResponse.LogEntry entries = 1;
|
|
155
238
|
*/
|
|
156
239
|
entries: SearchLogsResponse_LogEntry[];
|
|
157
240
|
|
|
158
241
|
/**
|
|
242
|
+
* Pass as page_token to get the next page. Empty if this is the last page.
|
|
243
|
+
*
|
|
159
244
|
* @generated from field: string next_page_token = 2;
|
|
160
245
|
*/
|
|
161
246
|
nextPageToken: string;
|
|
162
247
|
};
|
|
163
248
|
|
|
164
249
|
/**
|
|
250
|
+
* Response message for `SearchLogs`.
|
|
251
|
+
*
|
|
165
252
|
* @generated from message alis.build.v1.SearchLogsResponse
|
|
166
253
|
*/
|
|
167
254
|
export declare type SearchLogsResponseJson = {
|
|
168
255
|
/**
|
|
256
|
+
* The matching log entries, ordered oldest to newest.
|
|
257
|
+
*
|
|
169
258
|
* @generated from field: repeated alis.build.v1.SearchLogsResponse.LogEntry entries = 1;
|
|
170
259
|
*/
|
|
171
260
|
entries?: SearchLogsResponse_LogEntryJson[];
|
|
172
261
|
|
|
173
262
|
/**
|
|
263
|
+
* Pass as page_token to get the next page. Empty if this is the last page.
|
|
264
|
+
*
|
|
174
265
|
* @generated from field: string next_page_token = 2;
|
|
175
266
|
*/
|
|
176
267
|
nextPageToken?: string;
|
|
@@ -183,120 +274,180 @@ export declare type SearchLogsResponseJson = {
|
|
|
183
274
|
export declare const SearchLogsResponseSchema: GenMessage<SearchLogsResponse, {jsonType: SearchLogsResponseJson}>;
|
|
184
275
|
|
|
185
276
|
/**
|
|
277
|
+
* A single log entry that matched the search.
|
|
278
|
+
*
|
|
186
279
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry
|
|
187
280
|
*/
|
|
188
281
|
export declare type SearchLogsResponse_LogEntry = Message<"alis.build.v1.SearchLogsResponse.LogEntry"> & {
|
|
189
282
|
/**
|
|
283
|
+
* Time the event described by the entry occurred, RFC3339.
|
|
284
|
+
* E.g. "2022-01-01T00:00:00Z"
|
|
285
|
+
*
|
|
190
286
|
* @generated from field: string timestamp = 1;
|
|
191
287
|
*/
|
|
192
288
|
timestamp: string;
|
|
193
289
|
|
|
194
290
|
/**
|
|
291
|
+
* Severity of the entry. Empty means DEFAULT.
|
|
292
|
+
*
|
|
195
293
|
* @generated from field: alis.build.v1.SearchLogsRequest.Severity severity = 2;
|
|
196
294
|
*/
|
|
197
295
|
severity: SearchLogsRequest_Severity;
|
|
198
296
|
|
|
199
297
|
/**
|
|
298
|
+
* The log this entry belongs to.
|
|
299
|
+
* E.g. "projects/my-project/logs/run.googleapis.com%2Fstderr"
|
|
300
|
+
*
|
|
200
301
|
* @generated from field: string log_name = 3;
|
|
201
302
|
*/
|
|
202
303
|
logName: string;
|
|
203
304
|
|
|
204
305
|
/**
|
|
306
|
+
* The message. Either the plain text payload, or the JSON payload
|
|
307
|
+
* serialised as a JSON object string.
|
|
308
|
+
* E.g. "{\"message\":\"request failed\",\"code\":13}"
|
|
309
|
+
*
|
|
205
310
|
* @generated from field: string payload = 4;
|
|
206
311
|
*/
|
|
207
312
|
payload: string;
|
|
208
313
|
|
|
209
314
|
/**
|
|
315
|
+
* The monitored resource that produced the entry.
|
|
316
|
+
*
|
|
210
317
|
* @generated from field: alis.build.v1.SearchLogsResponse.LogEntry.Resource resource = 5;
|
|
211
318
|
*/
|
|
212
319
|
resource?: SearchLogsResponse_LogEntry_Resource | undefined;
|
|
213
320
|
|
|
214
321
|
/**
|
|
322
|
+
* Labels attached to the entry by the writer.
|
|
323
|
+
*
|
|
215
324
|
* @generated from field: map<string, string> labels = 6;
|
|
216
325
|
*/
|
|
217
326
|
labels: { [key: string]: string };
|
|
218
327
|
|
|
219
328
|
/**
|
|
329
|
+
* Trace this entry belongs to, used to group entries of one request.
|
|
330
|
+
* E.g. "projects/my-project/traces/06796866738c859f2f19b7cfb3214824"
|
|
331
|
+
*
|
|
220
332
|
* @generated from field: string trace = 7;
|
|
221
333
|
*/
|
|
222
334
|
trace: string;
|
|
223
335
|
|
|
224
336
|
/**
|
|
337
|
+
* Span within the trace that produced this entry.
|
|
338
|
+
* E.g. "000000000000004a"
|
|
339
|
+
*
|
|
225
340
|
* @generated from field: string span_id = 8;
|
|
226
341
|
*/
|
|
227
342
|
spanId: string;
|
|
228
343
|
|
|
229
344
|
/**
|
|
345
|
+
* Unique id of the entry within its log_name, used for de-duplication.
|
|
346
|
+
*
|
|
230
347
|
* @generated from field: string insert_id = 9;
|
|
231
348
|
*/
|
|
232
349
|
insertId: string;
|
|
233
350
|
|
|
234
351
|
/**
|
|
352
|
+
* Set when the entry describes an HTTP request.
|
|
353
|
+
*
|
|
235
354
|
* @generated from field: alis.build.v1.SearchLogsResponse.LogEntry.HttpRequest http_request = 10;
|
|
236
355
|
*/
|
|
237
356
|
httpRequest?: SearchLogsResponse_LogEntry_HttpRequest | undefined;
|
|
238
357
|
|
|
239
358
|
/**
|
|
359
|
+
* Source location that produced the entry, when the writer supplied it.
|
|
360
|
+
*
|
|
240
361
|
* @generated from field: alis.build.v1.SearchLogsResponse.LogEntry.SourceLocation source_location = 11;
|
|
241
362
|
*/
|
|
242
363
|
sourceLocation?: SearchLogsResponse_LogEntry_SourceLocation | undefined;
|
|
243
364
|
};
|
|
244
365
|
|
|
245
366
|
/**
|
|
367
|
+
* A single log entry that matched the search.
|
|
368
|
+
*
|
|
246
369
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry
|
|
247
370
|
*/
|
|
248
371
|
export declare type SearchLogsResponse_LogEntryJson = {
|
|
249
372
|
/**
|
|
373
|
+
* Time the event described by the entry occurred, RFC3339.
|
|
374
|
+
* E.g. "2022-01-01T00:00:00Z"
|
|
375
|
+
*
|
|
250
376
|
* @generated from field: string timestamp = 1;
|
|
251
377
|
*/
|
|
252
378
|
timestamp?: string;
|
|
253
379
|
|
|
254
380
|
/**
|
|
381
|
+
* Severity of the entry. Empty means DEFAULT.
|
|
382
|
+
*
|
|
255
383
|
* @generated from field: alis.build.v1.SearchLogsRequest.Severity severity = 2;
|
|
256
384
|
*/
|
|
257
385
|
severity?: SearchLogsRequest_SeverityJson;
|
|
258
386
|
|
|
259
387
|
/**
|
|
388
|
+
* The log this entry belongs to.
|
|
389
|
+
* E.g. "projects/my-project/logs/run.googleapis.com%2Fstderr"
|
|
390
|
+
*
|
|
260
391
|
* @generated from field: string log_name = 3;
|
|
261
392
|
*/
|
|
262
393
|
logName?: string;
|
|
263
394
|
|
|
264
395
|
/**
|
|
396
|
+
* The message. Either the plain text payload, or the JSON payload
|
|
397
|
+
* serialised as a JSON object string.
|
|
398
|
+
* E.g. "{\"message\":\"request failed\",\"code\":13}"
|
|
399
|
+
*
|
|
265
400
|
* @generated from field: string payload = 4;
|
|
266
401
|
*/
|
|
267
402
|
payload?: string;
|
|
268
403
|
|
|
269
404
|
/**
|
|
405
|
+
* The monitored resource that produced the entry.
|
|
406
|
+
*
|
|
270
407
|
* @generated from field: alis.build.v1.SearchLogsResponse.LogEntry.Resource resource = 5;
|
|
271
408
|
*/
|
|
272
409
|
resource?: SearchLogsResponse_LogEntry_ResourceJson;
|
|
273
410
|
|
|
274
411
|
/**
|
|
412
|
+
* Labels attached to the entry by the writer.
|
|
413
|
+
*
|
|
275
414
|
* @generated from field: map<string, string> labels = 6;
|
|
276
415
|
*/
|
|
277
416
|
labels?: { [key: string]: string };
|
|
278
417
|
|
|
279
418
|
/**
|
|
419
|
+
* Trace this entry belongs to, used to group entries of one request.
|
|
420
|
+
* E.g. "projects/my-project/traces/06796866738c859f2f19b7cfb3214824"
|
|
421
|
+
*
|
|
280
422
|
* @generated from field: string trace = 7;
|
|
281
423
|
*/
|
|
282
424
|
trace?: string;
|
|
283
425
|
|
|
284
426
|
/**
|
|
427
|
+
* Span within the trace that produced this entry.
|
|
428
|
+
* E.g. "000000000000004a"
|
|
429
|
+
*
|
|
285
430
|
* @generated from field: string span_id = 8;
|
|
286
431
|
*/
|
|
287
432
|
spanId?: string;
|
|
288
433
|
|
|
289
434
|
/**
|
|
435
|
+
* Unique id of the entry within its log_name, used for de-duplication.
|
|
436
|
+
*
|
|
290
437
|
* @generated from field: string insert_id = 9;
|
|
291
438
|
*/
|
|
292
439
|
insertId?: string;
|
|
293
440
|
|
|
294
441
|
/**
|
|
442
|
+
* Set when the entry describes an HTTP request.
|
|
443
|
+
*
|
|
295
444
|
* @generated from field: alis.build.v1.SearchLogsResponse.LogEntry.HttpRequest http_request = 10;
|
|
296
445
|
*/
|
|
297
446
|
httpRequest?: SearchLogsResponse_LogEntry_HttpRequestJson;
|
|
298
447
|
|
|
299
448
|
/**
|
|
449
|
+
* Source location that produced the entry, when the writer supplied it.
|
|
450
|
+
*
|
|
300
451
|
* @generated from field: alis.build.v1.SearchLogsResponse.LogEntry.SourceLocation source_location = 11;
|
|
301
452
|
*/
|
|
302
453
|
sourceLocation?: SearchLogsResponse_LogEntry_SourceLocationJson;
|
|
@@ -309,30 +460,48 @@ export declare type SearchLogsResponse_LogEntryJson = {
|
|
|
309
460
|
export declare const SearchLogsResponse_LogEntrySchema: GenMessage<SearchLogsResponse_LogEntry, {jsonType: SearchLogsResponse_LogEntryJson}>;
|
|
310
461
|
|
|
311
462
|
/**
|
|
463
|
+
* The monitored resource that produced a log entry, identified by its
|
|
464
|
+
* type and labels.
|
|
465
|
+
*
|
|
312
466
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry.Resource
|
|
313
467
|
*/
|
|
314
468
|
export declare type SearchLogsResponse_LogEntry_Resource = Message<"alis.build.v1.SearchLogsResponse.LogEntry.Resource"> & {
|
|
315
469
|
/**
|
|
470
|
+
* Resource type.
|
|
471
|
+
* E.g. "cloud_run_revision", "gce_instance", "k8s_container"
|
|
472
|
+
*
|
|
316
473
|
* @generated from field: string type = 1;
|
|
317
474
|
*/
|
|
318
475
|
type: string;
|
|
319
476
|
|
|
320
477
|
/**
|
|
478
|
+
* Identifying labels for the resource.
|
|
479
|
+
* E.g. {"project_id": "my-project", "service_name": "my-service"}
|
|
480
|
+
*
|
|
321
481
|
* @generated from field: map<string, string> labels = 2;
|
|
322
482
|
*/
|
|
323
483
|
labels: { [key: string]: string };
|
|
324
484
|
};
|
|
325
485
|
|
|
326
486
|
/**
|
|
487
|
+
* The monitored resource that produced a log entry, identified by its
|
|
488
|
+
* type and labels.
|
|
489
|
+
*
|
|
327
490
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry.Resource
|
|
328
491
|
*/
|
|
329
492
|
export declare type SearchLogsResponse_LogEntry_ResourceJson = {
|
|
330
493
|
/**
|
|
494
|
+
* Resource type.
|
|
495
|
+
* E.g. "cloud_run_revision", "gce_instance", "k8s_container"
|
|
496
|
+
*
|
|
331
497
|
* @generated from field: string type = 1;
|
|
332
498
|
*/
|
|
333
499
|
type?: string;
|
|
334
500
|
|
|
335
501
|
/**
|
|
502
|
+
* Identifying labels for the resource.
|
|
503
|
+
* E.g. {"project_id": "my-project", "service_name": "my-service"}
|
|
504
|
+
*
|
|
336
505
|
* @generated from field: map<string, string> labels = 2;
|
|
337
506
|
*/
|
|
338
507
|
labels?: { [key: string]: string };
|
|
@@ -345,90 +514,132 @@ export declare type SearchLogsResponse_LogEntry_ResourceJson = {
|
|
|
345
514
|
export declare const SearchLogsResponse_LogEntry_ResourceSchema: GenMessage<SearchLogsResponse_LogEntry_Resource, {jsonType: SearchLogsResponse_LogEntry_ResourceJson}>;
|
|
346
515
|
|
|
347
516
|
/**
|
|
517
|
+
* The HTTP request that a log entry describes.
|
|
518
|
+
*
|
|
348
519
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry.HttpRequest
|
|
349
520
|
*/
|
|
350
521
|
export declare type SearchLogsResponse_LogEntry_HttpRequest = Message<"alis.build.v1.SearchLogsResponse.LogEntry.HttpRequest"> & {
|
|
351
522
|
/**
|
|
523
|
+
* The HTTP request method.
|
|
524
|
+
* E.g. "GET", "POST"
|
|
525
|
+
*
|
|
352
526
|
* @generated from field: string method = 1;
|
|
353
527
|
*/
|
|
354
528
|
method: string;
|
|
355
529
|
|
|
356
530
|
/**
|
|
531
|
+
* Full request URL.
|
|
532
|
+
* E.g. "https://my-service.run.app/v1/books"
|
|
533
|
+
*
|
|
357
534
|
* @generated from field: string url = 2;
|
|
358
535
|
*/
|
|
359
536
|
url: string;
|
|
360
537
|
|
|
361
538
|
/**
|
|
539
|
+
* HTTP status returned. 0 if the response was never sent.
|
|
540
|
+
*
|
|
362
541
|
* @generated from field: int32 status = 3;
|
|
363
542
|
*/
|
|
364
543
|
status: number;
|
|
365
544
|
|
|
366
545
|
/**
|
|
546
|
+
* Time taken to serve the request.
|
|
547
|
+
* E.g. "1.230s"
|
|
548
|
+
*
|
|
367
549
|
* @generated from field: string latency = 4;
|
|
368
550
|
*/
|
|
369
551
|
latency: string;
|
|
370
552
|
|
|
371
553
|
/**
|
|
554
|
+
* IP of the client that issued the request.
|
|
555
|
+
*
|
|
372
556
|
* @generated from field: string remote_ip = 5;
|
|
373
557
|
*/
|
|
374
558
|
remoteIp: string;
|
|
375
559
|
|
|
376
560
|
/**
|
|
561
|
+
* User agent sent by the client.
|
|
562
|
+
*
|
|
377
563
|
* @generated from field: string user_agent = 6;
|
|
378
564
|
*/
|
|
379
565
|
userAgent: string;
|
|
380
566
|
|
|
381
567
|
/**
|
|
568
|
+
* Size of the request body in bytes.
|
|
569
|
+
*
|
|
382
570
|
* @generated from field: int64 request_size = 7;
|
|
383
571
|
*/
|
|
384
572
|
requestSize: bigint;
|
|
385
573
|
|
|
386
574
|
/**
|
|
575
|
+
* Size of the response body in bytes.
|
|
576
|
+
*
|
|
387
577
|
* @generated from field: int64 response_size = 8;
|
|
388
578
|
*/
|
|
389
579
|
responseSize: bigint;
|
|
390
580
|
};
|
|
391
581
|
|
|
392
582
|
/**
|
|
583
|
+
* The HTTP request that a log entry describes.
|
|
584
|
+
*
|
|
393
585
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry.HttpRequest
|
|
394
586
|
*/
|
|
395
587
|
export declare type SearchLogsResponse_LogEntry_HttpRequestJson = {
|
|
396
588
|
/**
|
|
589
|
+
* The HTTP request method.
|
|
590
|
+
* E.g. "GET", "POST"
|
|
591
|
+
*
|
|
397
592
|
* @generated from field: string method = 1;
|
|
398
593
|
*/
|
|
399
594
|
method?: string;
|
|
400
595
|
|
|
401
596
|
/**
|
|
597
|
+
* Full request URL.
|
|
598
|
+
* E.g. "https://my-service.run.app/v1/books"
|
|
599
|
+
*
|
|
402
600
|
* @generated from field: string url = 2;
|
|
403
601
|
*/
|
|
404
602
|
url?: string;
|
|
405
603
|
|
|
406
604
|
/**
|
|
605
|
+
* HTTP status returned. 0 if the response was never sent.
|
|
606
|
+
*
|
|
407
607
|
* @generated from field: int32 status = 3;
|
|
408
608
|
*/
|
|
409
609
|
status?: number;
|
|
410
610
|
|
|
411
611
|
/**
|
|
612
|
+
* Time taken to serve the request.
|
|
613
|
+
* E.g. "1.230s"
|
|
614
|
+
*
|
|
412
615
|
* @generated from field: string latency = 4;
|
|
413
616
|
*/
|
|
414
617
|
latency?: string;
|
|
415
618
|
|
|
416
619
|
/**
|
|
620
|
+
* IP of the client that issued the request.
|
|
621
|
+
*
|
|
417
622
|
* @generated from field: string remote_ip = 5;
|
|
418
623
|
*/
|
|
419
624
|
remoteIp?: string;
|
|
420
625
|
|
|
421
626
|
/**
|
|
627
|
+
* User agent sent by the client.
|
|
628
|
+
*
|
|
422
629
|
* @generated from field: string user_agent = 6;
|
|
423
630
|
*/
|
|
424
631
|
userAgent?: string;
|
|
425
632
|
|
|
426
633
|
/**
|
|
634
|
+
* Size of the request body in bytes.
|
|
635
|
+
*
|
|
427
636
|
* @generated from field: int64 request_size = 7;
|
|
428
637
|
*/
|
|
429
638
|
requestSize?: string;
|
|
430
639
|
|
|
431
640
|
/**
|
|
641
|
+
* Size of the response body in bytes.
|
|
642
|
+
*
|
|
432
643
|
* @generated from field: int64 response_size = 8;
|
|
433
644
|
*/
|
|
434
645
|
responseSize?: string;
|
|
@@ -441,40 +652,60 @@ export declare type SearchLogsResponse_LogEntry_HttpRequestJson = {
|
|
|
441
652
|
export declare const SearchLogsResponse_LogEntry_HttpRequestSchema: GenMessage<SearchLogsResponse_LogEntry_HttpRequest, {jsonType: SearchLogsResponse_LogEntry_HttpRequestJson}>;
|
|
442
653
|
|
|
443
654
|
/**
|
|
655
|
+
* The location in the source code that wrote a log entry.
|
|
656
|
+
*
|
|
444
657
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry.SourceLocation
|
|
445
658
|
*/
|
|
446
659
|
export declare type SearchLogsResponse_LogEntry_SourceLocation = Message<"alis.build.v1.SearchLogsResponse.LogEntry.SourceLocation"> & {
|
|
447
660
|
/**
|
|
661
|
+
* Source file name.
|
|
662
|
+
* E.g. "main.go"
|
|
663
|
+
*
|
|
448
664
|
* @generated from field: string file = 1;
|
|
449
665
|
*/
|
|
450
666
|
file: string;
|
|
451
667
|
|
|
452
668
|
/**
|
|
669
|
+
* Line within the file.
|
|
670
|
+
*
|
|
453
671
|
* @generated from field: int64 line = 2;
|
|
454
672
|
*/
|
|
455
673
|
line: bigint;
|
|
456
674
|
|
|
457
675
|
/**
|
|
676
|
+
* Enclosing function.
|
|
677
|
+
* E.g. "main.(*Server).ListBooks"
|
|
678
|
+
*
|
|
458
679
|
* @generated from field: string function = 3;
|
|
459
680
|
*/
|
|
460
681
|
function: string;
|
|
461
682
|
};
|
|
462
683
|
|
|
463
684
|
/**
|
|
685
|
+
* The location in the source code that wrote a log entry.
|
|
686
|
+
*
|
|
464
687
|
* @generated from message alis.build.v1.SearchLogsResponse.LogEntry.SourceLocation
|
|
465
688
|
*/
|
|
466
689
|
export declare type SearchLogsResponse_LogEntry_SourceLocationJson = {
|
|
467
690
|
/**
|
|
691
|
+
* Source file name.
|
|
692
|
+
* E.g. "main.go"
|
|
693
|
+
*
|
|
468
694
|
* @generated from field: string file = 1;
|
|
469
695
|
*/
|
|
470
696
|
file?: string;
|
|
471
697
|
|
|
472
698
|
/**
|
|
699
|
+
* Line within the file.
|
|
700
|
+
*
|
|
473
701
|
* @generated from field: int64 line = 2;
|
|
474
702
|
*/
|
|
475
703
|
line?: string;
|
|
476
704
|
|
|
477
705
|
/**
|
|
706
|
+
* Enclosing function.
|
|
707
|
+
* E.g. "main.(*Server).ListBooks"
|
|
708
|
+
*
|
|
478
709
|
* @generated from field: string function = 3;
|
|
479
710
|
*/
|
|
480
711
|
function?: string;
|
|
@@ -487,10 +718,17 @@ export declare type SearchLogsResponse_LogEntry_SourceLocationJson = {
|
|
|
487
718
|
export declare const SearchLogsResponse_LogEntry_SourceLocationSchema: GenMessage<SearchLogsResponse_LogEntry_SourceLocation, {jsonType: SearchLogsResponse_LogEntry_SourceLocationJson}>;
|
|
488
719
|
|
|
489
720
|
/**
|
|
721
|
+
* Searches the logs of Google Cloud projects.
|
|
722
|
+
*
|
|
490
723
|
* @generated from service alis.build.v1.Monitoring
|
|
491
724
|
*/
|
|
492
725
|
export declare const Monitoring: GenService<{
|
|
493
726
|
/**
|
|
727
|
+
* Searches the log entries of a Google Cloud project within a time range,
|
|
728
|
+
* optionally filtered by severity. Entries are returned oldest to newest,
|
|
729
|
+
* one page at a time; pass `next_page_token` back as `page_token` to get
|
|
730
|
+
* the next page.
|
|
731
|
+
*
|
|
494
732
|
* @generated from rpc alis.build.v1.Monitoring.SearchLogs
|
|
495
733
|
*/
|
|
496
734
|
searchLogs: {
|