Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package types.v1; |
| 4 |
|
| 5 |
import "google/protobuf/duration.proto"; |
| 6 |
import "google/protobuf/timestamp.proto"; |
| 7 |
|
| 8 |
enum ScalarType { |
| 9 |
unknown = 0; |
| 10 |
str = 1; |
| 11 |
f64 = 2; |
| 12 |
i64 = 3; |
| 13 |
bool = 4; |
| 14 |
ts = 5; |
| 15 |
dur = 6; |
| 16 |
} |
| 17 |
|
| 18 |
message VarType { |
| 19 |
message ArrayType { |
| 20 |
VarType items = 1; |
| 21 |
} |
| 22 |
message ObjectType { |
| 23 |
map<string, VarType> kvs = 1; |
| 24 |
} |
| 25 |
message MapType { |
| 26 |
VarType key = 1; |
| 27 |
VarType value = 2; |
| 28 |
} |
| 29 |
message Null {} |
| 30 |
oneof type { |
| 31 |
ScalarType scalar = 1; |
| 32 |
ArrayType array = 2; |
| 33 |
ObjectType object = 3; |
| 34 |
MapType map = 4; |
| 35 |
Null null = 5; |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
message KV { |
| 40 |
string key = 1; |
| 41 |
Val value = 2; |
| 42 |
} |
| 43 |
|
| 44 |
message Val { |
| 45 |
VarType type = 100; |
| 46 |
oneof kind { |
| 47 |
string str = 201; |
| 48 |
double f64 = 202; |
| 49 |
int64 i64 = 203; |
| 50 |
bool bool = 204; |
| 51 |
google.protobuf.Timestamp ts = 205; |
| 52 |
google.protobuf.Duration dur = 206; |
| 53 |
Arr arr = 207; |
| 54 |
Obj obj = 208; |
| 55 |
Map map = 209; |
| 56 |
Null null = 210; |
| 57 |
} |
| 58 |
} |
| 59 |
|
| 60 |
message Obj { |
| 61 |
repeated KV kvs = 1; |
| 62 |
} |
| 63 |
|
| 64 |
message Arr { |
| 65 |
repeated Val items = 1; |
| 66 |
} |
| 67 |
|
| 68 |
message Map { |
| 69 |
message Entry { |
| 70 |
Val key = 1; |
| 71 |
Val value = 2; |
| 72 |
} |
| 73 |
repeated Entry entries = 1; |
| 74 |
} |
| 75 |
|
| 76 |
message Null {} |
| 77 |
|
| 78 |
message Scalar { |
| 79 |
VarType type = 100; |
| 80 |
oneof kind { |
| 81 |
string str = 201; |
| 82 |
double f64 = 202; |
| 83 |
int64 i64 = 203; |
| 84 |
bool bool = 204; |
| 85 |
google.protobuf.Timestamp ts = 207; |
| 86 |
google.protobuf.Duration dur = 208; |
| 87 |
} |
| 88 |
} |
| 89 |
|
| 90 |
message FlatKV { |
| 91 |
string key = 1; |
| 92 |
Scalar value = 2; |
| 93 |
} |
| 94 |
|
| 95 |
message FlatArr { |
| 96 |
repeated Scalar items = 1; |
| 97 |
} |
| 98 |
|
| 99 |
message TableType { |
| 100 |
message Column { |
| 101 |
string name = 1; |
| 102 |
VarType type = 2; |
| 103 |
} |
| 104 |
repeated Column columns = 1; |
| 105 |
} |
| 106 |
|
| 107 |
message Table { |
| 108 |
TableType type = 1; |
| 109 |
repeated Arr rows = 2; |
| 110 |
} |
| 111 |
|
| 112 |
message DataStreamType { |
| 113 |
oneof type { |
| 114 |
MultiDataStreamType multi = 1; |
| 115 |
TabularType tabular = 2; |
| 116 |
VarType single_value = 3; |
| 117 |
Timeseries timeseries = 5; |
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
message MultiDataStreamType { |
| 122 |
DataStreamType streams = 1; |
| 123 |
} |
| 124 |
|
| 125 |
message TabularType { |
| 126 |
message LogEventType { |
| 127 |
// log events contain, |
| 128 |
// - machine_id |
| 129 |
// - session_id |
| 130 |
// - event_id (for ordering only within a machine/session pair |
| 131 |
// - parsed_at (timestamp of when the log event was parsed) |
| 132 |
// - timestamp (from a value found in the log, otherwise parsed_at) |
| 133 |
// - level |
| 134 |
// - message |
| 135 |
// - key-value pairs |
| 136 |
} |
| 137 |
oneof type { |
| 138 |
TableType table = 1; |
| 139 |
LogEventType log_events = 2; |
| 140 |
} |
| 141 |
} |
| 142 |
|
| 143 |
message Timeseries { |
| 144 |
// each row will contain a timestamp along with a value |
| 145 |
// value of this type |
| 146 |
VarType type = 1; |
| 147 |
} |