@dxos/protocols 0.3.11-main.df1e30a → 0.3.11-main.e19f39d
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.
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts +238 -172
- package/dist/cjs/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/client/services.js +38 -25
- package/dist/cjs/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts +2 -0
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts +238 -172
- package/dist/esm/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/client/services.js +37 -24
- package/dist/esm/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts +2 -0
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/proto/dxos/client/services.proto +27 -0
- package/src/proto/gen/dxos/client/services.ts +237 -172
- package/src/proto/gen/index.ts +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AA6DhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAohB7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,oimGAAoimG,CAAC,CAAC,CAAC;AAC7lmG,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.3.11-main.
|
|
3
|
+
"version": "0.3.11-main.e19f39d",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dxos/codec-protobuf": "0.3.11-main.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/invariant": "0.3.11-main.
|
|
36
|
+
"@dxos/codec-protobuf": "0.3.11-main.e19f39d",
|
|
37
|
+
"@dxos/keys": "0.3.11-main.e19f39d",
|
|
38
|
+
"@dxos/timeframe": "0.3.11-main.e19f39d",
|
|
39
|
+
"@dxos/invariant": "0.3.11-main.e19f39d"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
|
@@ -19,6 +19,7 @@ import "dxos/mesh/signal.proto";
|
|
|
19
19
|
import "dxos/mesh/teleport/gossip.proto";
|
|
20
20
|
import "dxos/mesh/presence.proto";
|
|
21
21
|
import "dxos/value.proto";
|
|
22
|
+
import "dxos/devtools/swarm.proto";
|
|
22
23
|
|
|
23
24
|
// TODO(burdon): Reorganize packages (e.g., client.services, echo.database).
|
|
24
25
|
|
|
@@ -63,6 +64,28 @@ message GetDiagnosticsResponse {
|
|
|
63
64
|
google.protobuf.Struct diagnostics = 2;
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
message Platform {
|
|
68
|
+
enum PLATFORM_TYPE {
|
|
69
|
+
BROWSER = 0;
|
|
70
|
+
SHARED_WORKER = 1;
|
|
71
|
+
NODE = 2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
PLATFORM_TYPE type = 1;
|
|
75
|
+
/// The User-Agent string from a browser
|
|
76
|
+
optional string user_agent = 2;
|
|
77
|
+
/// e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
78
|
+
optional string platform = 3;
|
|
79
|
+
/// the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
80
|
+
optional string arch = 4;
|
|
81
|
+
/// the node.js version string
|
|
82
|
+
optional string runtime = 5;
|
|
83
|
+
// TODO(nf): uint64? :)
|
|
84
|
+
/// the number of seconds the client has been up
|
|
85
|
+
optional uint32 uptime = 6;
|
|
86
|
+
/// e.g. NodeJS.MemoryUsage, subject to change
|
|
87
|
+
optional google.protobuf.Struct memory = 7;
|
|
88
|
+
}
|
|
66
89
|
//
|
|
67
90
|
// System
|
|
68
91
|
//
|
|
@@ -82,6 +105,9 @@ service SystemService {
|
|
|
82
105
|
|
|
83
106
|
/// Reset the client.
|
|
84
107
|
rpc Reset(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
108
|
+
|
|
109
|
+
/// Get platform Information
|
|
110
|
+
rpc GetPlatform(google.protobuf.Empty) returns (Platform);
|
|
85
111
|
}
|
|
86
112
|
|
|
87
113
|
//
|
|
@@ -476,6 +502,7 @@ message NetworkStatus {
|
|
|
476
502
|
|
|
477
503
|
ConnectionState swarm = 1;
|
|
478
504
|
repeated Signal signaling = 2;
|
|
505
|
+
repeated dxos.devtools.swarm.SwarmInfo connection_info = 3;
|
|
479
506
|
}
|
|
480
507
|
|
|
481
508
|
message UpdateConfigRequest {
|
|
@@ -61,67 +61,24 @@ import * as example_testing_rpc from "../../example/testing/rpc";
|
|
|
61
61
|
import * as google_protobuf from "../../google/protobuf";
|
|
62
62
|
/**
|
|
63
63
|
* Defined in:
|
|
64
|
-
* {@link file://./../../../dxos/client/
|
|
65
|
-
*/
|
|
66
|
-
export interface Metrics {
|
|
67
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
68
|
-
values?: Metrics.KeyPair[];
|
|
69
|
-
}
|
|
70
|
-
export namespace Metrics {
|
|
71
|
-
/**
|
|
72
|
-
* Defined in:
|
|
73
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
74
|
-
*/
|
|
75
|
-
export interface KeyPair {
|
|
76
|
-
/**
|
|
77
|
-
* Options:
|
|
78
|
-
* - proto3_optional = true
|
|
79
|
-
*/
|
|
80
|
-
key?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Options:
|
|
83
|
-
* - proto3_optional = true
|
|
84
|
-
*/
|
|
85
|
-
value?: dxos_value.Value;
|
|
86
|
-
/**
|
|
87
|
-
* Options:
|
|
88
|
-
* - proto3_optional = true
|
|
89
|
-
*/
|
|
90
|
-
stats?: dxos_value.Stats;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Defined in:
|
|
95
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
64
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
96
65
|
*/
|
|
97
|
-
export
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
* - proto3_optional = true
|
|
101
|
-
*/
|
|
102
|
-
reset?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Options:
|
|
105
|
-
* - proto3_optional = true
|
|
106
|
-
*/
|
|
107
|
-
record?: boolean;
|
|
66
|
+
export enum SystemStatus {
|
|
67
|
+
ACTIVE = 0,
|
|
68
|
+
INACTIVE = 1
|
|
108
69
|
}
|
|
109
70
|
/**
|
|
110
71
|
* Defined in:
|
|
111
|
-
* {@link file://./../../../dxos/client/
|
|
72
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
112
73
|
*/
|
|
113
|
-
export interface
|
|
114
|
-
|
|
115
|
-
* Options:
|
|
116
|
-
* - proto3_optional = true
|
|
117
|
-
*/
|
|
118
|
-
recording?: boolean;
|
|
74
|
+
export interface UpdateStatusRequest {
|
|
75
|
+
status: SystemStatus;
|
|
119
76
|
}
|
|
120
77
|
/**
|
|
121
78
|
* Defined in:
|
|
122
|
-
* {@link file://./../../../dxos/client/
|
|
79
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
123
80
|
*/
|
|
124
|
-
export interface
|
|
81
|
+
export interface QueryStatusRequest {
|
|
125
82
|
/**
|
|
126
83
|
* Options:
|
|
127
84
|
* - proto3_optional = true
|
|
@@ -130,173 +87,101 @@ export interface QueryMetricsRequest {
|
|
|
130
87
|
}
|
|
131
88
|
/**
|
|
132
89
|
* Defined in:
|
|
133
|
-
* {@link file://./../../../dxos/client/
|
|
134
|
-
*/
|
|
135
|
-
export interface QueryMetricsResponse {
|
|
136
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
137
|
-
metrics: Metrics;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Defined in:
|
|
141
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
90
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
142
91
|
*/
|
|
143
|
-
export
|
|
144
|
-
|
|
145
|
-
DEBUG = 10,
|
|
146
|
-
INFO = 11,
|
|
147
|
-
WARN = 12,
|
|
148
|
-
ERROR = 13
|
|
92
|
+
export interface QueryStatusResponse {
|
|
93
|
+
status: SystemStatus;
|
|
149
94
|
}
|
|
150
95
|
/**
|
|
151
96
|
* Defined in:
|
|
152
|
-
* {@link file://./../../../dxos/client/
|
|
97
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
153
98
|
*/
|
|
154
|
-
export interface
|
|
155
|
-
filters?: QueryLogsRequest.Filter[];
|
|
99
|
+
export interface GetDiagnosticsRequest {
|
|
156
100
|
/**
|
|
157
101
|
* Options:
|
|
158
102
|
* - proto3_optional = true
|
|
159
103
|
*/
|
|
160
|
-
|
|
104
|
+
keys?: GetDiagnosticsRequest.KEY_OPTION;
|
|
161
105
|
}
|
|
162
|
-
export namespace
|
|
163
|
-
/**
|
|
164
|
-
* Defined in:
|
|
165
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
166
|
-
*/
|
|
167
|
-
export enum MatchingOptions {
|
|
168
|
-
INCLUSIVE = 1,
|
|
169
|
-
EXPLICIT = 2
|
|
170
|
-
}
|
|
106
|
+
export namespace GetDiagnosticsRequest {
|
|
171
107
|
/**
|
|
172
108
|
* Defined in:
|
|
173
|
-
* {@link file://./../../../dxos/client/
|
|
109
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
174
110
|
*/
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
* - proto3_optional = true
|
|
180
|
-
*/
|
|
181
|
-
pattern?: string;
|
|
111
|
+
export enum KEY_OPTION {
|
|
112
|
+
NONE = 0,
|
|
113
|
+
TRUNCATE = 1,
|
|
114
|
+
HUMANIZE = 2
|
|
182
115
|
}
|
|
183
116
|
}
|
|
184
117
|
/**
|
|
185
118
|
* Defined in:
|
|
186
|
-
* {@link file://./../../../dxos/client/
|
|
119
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
187
120
|
*/
|
|
188
|
-
export interface
|
|
189
|
-
|
|
190
|
-
|
|
121
|
+
export interface GetDiagnosticsResponse {
|
|
122
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
123
|
+
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Defined in:
|
|
127
|
+
* {@link file://./../../../dxos/client/services.proto}
|
|
128
|
+
*/
|
|
129
|
+
export interface Platform {
|
|
130
|
+
type: Platform.PLATFORM_TYPE;
|
|
191
131
|
/**
|
|
132
|
+
* The User-Agent string from a browser
|
|
133
|
+
*
|
|
192
134
|
* Options:
|
|
193
135
|
* - proto3_optional = true
|
|
194
136
|
*/
|
|
195
|
-
|
|
137
|
+
userAgent?: string;
|
|
196
138
|
/**
|
|
139
|
+
* e.g process.platform from node, e.g. 'darwin', 'linux', 'win32'
|
|
140
|
+
*
|
|
197
141
|
* Options:
|
|
198
142
|
* - proto3_optional = true
|
|
199
143
|
*/
|
|
200
|
-
|
|
144
|
+
platform?: string;
|
|
201
145
|
/**
|
|
146
|
+
* the Node.JS arch string, e.g. 'arm64', 'x64'
|
|
147
|
+
*
|
|
202
148
|
* Options:
|
|
203
149
|
* - proto3_optional = true
|
|
204
150
|
*/
|
|
205
|
-
|
|
206
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
207
|
-
}
|
|
208
|
-
export namespace LogEntry {
|
|
151
|
+
arch?: string;
|
|
209
152
|
/**
|
|
210
|
-
*
|
|
211
|
-
*
|
|
153
|
+
* the node.js version string
|
|
154
|
+
*
|
|
155
|
+
* Options:
|
|
156
|
+
* - proto3_optional = true
|
|
212
157
|
*/
|
|
213
|
-
|
|
214
|
-
file: string;
|
|
215
|
-
line: number;
|
|
216
|
-
/**
|
|
217
|
-
* Options:
|
|
218
|
-
* - proto3_optional = true
|
|
219
|
-
*/
|
|
220
|
-
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
221
|
-
/**
|
|
222
|
-
* Options:
|
|
223
|
-
* - proto3_optional = true
|
|
224
|
-
*/
|
|
225
|
-
resourceId?: number;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Defined in:
|
|
230
|
-
* {@link file://./../../../dxos/client/logging.proto}
|
|
231
|
-
*/
|
|
232
|
-
export interface LoggingService {
|
|
233
|
-
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
234
|
-
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
235
|
-
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Defined in:
|
|
239
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
240
|
-
*/
|
|
241
|
-
export enum SystemStatus {
|
|
242
|
-
ACTIVE = 0,
|
|
243
|
-
INACTIVE = 1
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Defined in:
|
|
247
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
248
|
-
*/
|
|
249
|
-
export interface UpdateStatusRequest {
|
|
250
|
-
status: SystemStatus;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Defined in:
|
|
254
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
255
|
-
*/
|
|
256
|
-
export interface QueryStatusRequest {
|
|
158
|
+
runtime?: string;
|
|
257
159
|
/**
|
|
160
|
+
* the number of seconds the client has been up
|
|
161
|
+
*
|
|
258
162
|
* Options:
|
|
259
163
|
* - proto3_optional = true
|
|
260
164
|
*/
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Defined in:
|
|
265
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
266
|
-
*/
|
|
267
|
-
export interface QueryStatusResponse {
|
|
268
|
-
status: SystemStatus;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Defined in:
|
|
272
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
273
|
-
*/
|
|
274
|
-
export interface GetDiagnosticsRequest {
|
|
165
|
+
uptime?: number;
|
|
275
166
|
/**
|
|
167
|
+
* e.g. NodeJS.MemoryUsage, subject to change
|
|
168
|
+
*
|
|
276
169
|
* Options:
|
|
277
170
|
* - proto3_optional = true
|
|
278
171
|
*/
|
|
279
|
-
|
|
172
|
+
memory?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
280
173
|
}
|
|
281
|
-
export namespace
|
|
174
|
+
export namespace Platform {
|
|
282
175
|
/**
|
|
283
176
|
* Defined in:
|
|
284
177
|
* {@link file://./../../../dxos/client/services.proto}
|
|
285
178
|
*/
|
|
286
|
-
export enum
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
179
|
+
export enum PLATFORM_TYPE {
|
|
180
|
+
BROWSER = 0,
|
|
181
|
+
SHARED_WORKER = 1,
|
|
182
|
+
NODE = 2
|
|
290
183
|
}
|
|
291
184
|
}
|
|
292
|
-
/**
|
|
293
|
-
* Defined in:
|
|
294
|
-
* {@link file://./../../../dxos/client/services.proto}
|
|
295
|
-
*/
|
|
296
|
-
export interface GetDiagnosticsResponse {
|
|
297
|
-
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
298
|
-
diagnostics: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
299
|
-
}
|
|
300
185
|
/**
|
|
301
186
|
* Defined in:
|
|
302
187
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -322,6 +207,10 @@ export interface SystemService {
|
|
|
322
207
|
* Reset the client.
|
|
323
208
|
*/
|
|
324
209
|
reset: (request: void, options?: RequestOptions) => Promise<void>;
|
|
210
|
+
/**
|
|
211
|
+
* Get platform Information
|
|
212
|
+
*/
|
|
213
|
+
getPlatform: (request: void, options?: RequestOptions) => Promise<Platform>;
|
|
325
214
|
}
|
|
326
215
|
/**
|
|
327
216
|
* Defined in:
|
|
@@ -940,6 +829,7 @@ export enum ConnectionState {
|
|
|
940
829
|
export interface NetworkStatus {
|
|
941
830
|
swarm: ConnectionState;
|
|
942
831
|
signaling?: NetworkStatus.Signal[];
|
|
832
|
+
connectionInfo?: dxos_devtools_swarm.SwarmInfo[];
|
|
943
833
|
}
|
|
944
834
|
export namespace NetworkStatus {
|
|
945
835
|
/**
|
|
@@ -966,3 +856,178 @@ export interface NetworkService {
|
|
|
966
856
|
updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
|
|
967
857
|
queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
|
|
968
858
|
}
|
|
859
|
+
/**
|
|
860
|
+
* Defined in:
|
|
861
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
862
|
+
*/
|
|
863
|
+
export interface Metrics {
|
|
864
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
865
|
+
values?: Metrics.KeyPair[];
|
|
866
|
+
}
|
|
867
|
+
export namespace Metrics {
|
|
868
|
+
/**
|
|
869
|
+
* Defined in:
|
|
870
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
871
|
+
*/
|
|
872
|
+
export interface KeyPair {
|
|
873
|
+
/**
|
|
874
|
+
* Options:
|
|
875
|
+
* - proto3_optional = true
|
|
876
|
+
*/
|
|
877
|
+
key?: string;
|
|
878
|
+
/**
|
|
879
|
+
* Options:
|
|
880
|
+
* - proto3_optional = true
|
|
881
|
+
*/
|
|
882
|
+
value?: dxos_value.Value;
|
|
883
|
+
/**
|
|
884
|
+
* Options:
|
|
885
|
+
* - proto3_optional = true
|
|
886
|
+
*/
|
|
887
|
+
stats?: dxos_value.Stats;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Defined in:
|
|
892
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
893
|
+
*/
|
|
894
|
+
export interface ControlMetricsRequest {
|
|
895
|
+
/**
|
|
896
|
+
* Options:
|
|
897
|
+
* - proto3_optional = true
|
|
898
|
+
*/
|
|
899
|
+
reset?: boolean;
|
|
900
|
+
/**
|
|
901
|
+
* Options:
|
|
902
|
+
* - proto3_optional = true
|
|
903
|
+
*/
|
|
904
|
+
record?: boolean;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Defined in:
|
|
908
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
909
|
+
*/
|
|
910
|
+
export interface ControlMetricsResponse {
|
|
911
|
+
/**
|
|
912
|
+
* Options:
|
|
913
|
+
* - proto3_optional = true
|
|
914
|
+
*/
|
|
915
|
+
recording?: boolean;
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Defined in:
|
|
919
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
920
|
+
*/
|
|
921
|
+
export interface QueryMetricsRequest {
|
|
922
|
+
/**
|
|
923
|
+
* Options:
|
|
924
|
+
* - proto3_optional = true
|
|
925
|
+
*/
|
|
926
|
+
interval?: number;
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Defined in:
|
|
930
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
931
|
+
*/
|
|
932
|
+
export interface QueryMetricsResponse {
|
|
933
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
934
|
+
metrics: Metrics;
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Defined in:
|
|
938
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
939
|
+
*/
|
|
940
|
+
export enum LogLevel {
|
|
941
|
+
TRACE = 5,
|
|
942
|
+
DEBUG = 10,
|
|
943
|
+
INFO = 11,
|
|
944
|
+
WARN = 12,
|
|
945
|
+
ERROR = 13
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Defined in:
|
|
949
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
950
|
+
*/
|
|
951
|
+
export interface QueryLogsRequest {
|
|
952
|
+
filters?: QueryLogsRequest.Filter[];
|
|
953
|
+
/**
|
|
954
|
+
* Options:
|
|
955
|
+
* - proto3_optional = true
|
|
956
|
+
*/
|
|
957
|
+
options?: QueryLogsRequest.MatchingOptions;
|
|
958
|
+
}
|
|
959
|
+
export namespace QueryLogsRequest {
|
|
960
|
+
/**
|
|
961
|
+
* Defined in:
|
|
962
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
963
|
+
*/
|
|
964
|
+
export enum MatchingOptions {
|
|
965
|
+
INCLUSIVE = 1,
|
|
966
|
+
EXPLICIT = 2
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Defined in:
|
|
970
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
971
|
+
*/
|
|
972
|
+
export interface Filter {
|
|
973
|
+
level: LogLevel;
|
|
974
|
+
/**
|
|
975
|
+
* Options:
|
|
976
|
+
* - proto3_optional = true
|
|
977
|
+
*/
|
|
978
|
+
pattern?: string;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Defined in:
|
|
983
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
984
|
+
*/
|
|
985
|
+
export interface LogEntry {
|
|
986
|
+
level: LogLevel;
|
|
987
|
+
message: string;
|
|
988
|
+
/**
|
|
989
|
+
* Options:
|
|
990
|
+
* - proto3_optional = true
|
|
991
|
+
*/
|
|
992
|
+
context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
993
|
+
/**
|
|
994
|
+
* Options:
|
|
995
|
+
* - proto3_optional = true
|
|
996
|
+
*/
|
|
997
|
+
meta?: LogEntry.Meta;
|
|
998
|
+
/**
|
|
999
|
+
* Options:
|
|
1000
|
+
* - proto3_optional = true
|
|
1001
|
+
*/
|
|
1002
|
+
error?: dxos_error.Error;
|
|
1003
|
+
timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
|
|
1004
|
+
}
|
|
1005
|
+
export namespace LogEntry {
|
|
1006
|
+
/**
|
|
1007
|
+
* Defined in:
|
|
1008
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1009
|
+
*/
|
|
1010
|
+
export interface Meta {
|
|
1011
|
+
file: string;
|
|
1012
|
+
line: number;
|
|
1013
|
+
/**
|
|
1014
|
+
* Options:
|
|
1015
|
+
* - proto3_optional = true
|
|
1016
|
+
*/
|
|
1017
|
+
scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
|
|
1018
|
+
/**
|
|
1019
|
+
* Options:
|
|
1020
|
+
* - proto3_optional = true
|
|
1021
|
+
*/
|
|
1022
|
+
resourceId?: number;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Defined in:
|
|
1027
|
+
* {@link file://./../../../dxos/client/logging.proto}
|
|
1028
|
+
*/
|
|
1029
|
+
export interface LoggingService {
|
|
1030
|
+
controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
|
|
1031
|
+
queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
|
|
1032
|
+
queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
|
|
1033
|
+
}
|