@knockdata/objectexplorer 0.4.2 → 0.4.3

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.
@@ -0,0 +1,62 @@
1
+ // Only what the tail needs, written by hand rather than vendoring Google's proto tree.
2
+ // TailLogEntries is bidi-streaming, which HTTP transcoding will not carry — the REST
3
+ // endpoint holds ~14s and returns an empty array — so this is the only way to tail.
4
+ //
5
+ // Field numbers are wire format: they must match googleapis exactly, names need not.
6
+ // Fields we never read are simply absent; protobufjs skips unknown fields on decode.
7
+ // google/protobuf/* comes from protobufjs's bundled common types, nothing to vendor.
8
+
9
+ syntax = "proto3";
10
+
11
+ package google.logging.v2;
12
+
13
+ import "google/protobuf/duration.proto";
14
+ import "google/protobuf/struct.proto";
15
+ import "google/protobuf/timestamp.proto";
16
+
17
+ service LoggingServiceV2 {
18
+ rpc TailLogEntries (stream TailLogEntriesRequest) returns (stream TailLogEntriesResponse);
19
+ }
20
+
21
+ message TailLogEntriesRequest {
22
+ repeated string resource_names = 1;
23
+ string filter = 2;
24
+ google.protobuf.Duration buffer_window = 3;
25
+ }
26
+
27
+ message TailLogEntriesResponse {
28
+ repeated LogEntry entries = 1;
29
+ }
30
+
31
+ // google.api.MonitoredResource
32
+ message MonitoredResource {
33
+ string type = 1;
34
+ map<string, string> labels = 2;
35
+ }
36
+
37
+ // google.logging.type.LogSeverity
38
+ enum LogSeverity {
39
+ DEFAULT = 0;
40
+ DEBUG = 100;
41
+ INFO = 200;
42
+ NOTICE = 300;
43
+ WARNING = 400;
44
+ ERROR = 500;
45
+ CRITICAL = 600;
46
+ ALERT = 700;
47
+ EMERGENCY = 800;
48
+ }
49
+
50
+ message LogEntry {
51
+ string text_payload = 3;
52
+ string insert_id = 4;
53
+ google.protobuf.Struct json_payload = 6;
54
+ MonitoredResource resource = 8;
55
+ google.protobuf.Timestamp timestamp = 9;
56
+ LogSeverity severity = 10;
57
+ map<string, string> labels = 11;
58
+ string log_name = 12;
59
+ string trace = 22;
60
+ google.protobuf.Timestamp receive_timestamp = 24;
61
+ string span_id = 27;
62
+ }