@dxos/protocols 0.3.9-main.ef334cd → 0.3.9-main.f8fc6b9

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.
@@ -58,6 +58,181 @@ import * as dxos_value from "../value";
58
58
  import * as example_testing_data from "../../example/testing/data";
59
59
  import * as example_testing_rpc from "../../example/testing/rpc";
60
60
  import * as google_protobuf from "../../google/protobuf";
61
+ /**
62
+ * Defined in:
63
+ * {@link file://./../../../dxos/client/logging.proto}
64
+ */
65
+ export interface Metrics {
66
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
67
+ values?: Metrics.KeyPair[];
68
+ }
69
+ export namespace Metrics {
70
+ /**
71
+ * Defined in:
72
+ * {@link file://./../../../dxos/client/logging.proto}
73
+ */
74
+ export interface KeyPair {
75
+ /**
76
+ * Options:
77
+ * - proto3_optional = true
78
+ */
79
+ key?: string;
80
+ /**
81
+ * Options:
82
+ * - proto3_optional = true
83
+ */
84
+ value?: dxos_value.Value;
85
+ /**
86
+ * Options:
87
+ * - proto3_optional = true
88
+ */
89
+ stats?: dxos_value.Stats;
90
+ }
91
+ }
92
+ /**
93
+ * Defined in:
94
+ * {@link file://./../../../dxos/client/logging.proto}
95
+ */
96
+ export interface ControlMetricsRequest {
97
+ /**
98
+ * Options:
99
+ * - proto3_optional = true
100
+ */
101
+ reset?: boolean;
102
+ /**
103
+ * Options:
104
+ * - proto3_optional = true
105
+ */
106
+ record?: boolean;
107
+ }
108
+ /**
109
+ * Defined in:
110
+ * {@link file://./../../../dxos/client/logging.proto}
111
+ */
112
+ export interface ControlMetricsResponse {
113
+ /**
114
+ * Options:
115
+ * - proto3_optional = true
116
+ */
117
+ recording?: boolean;
118
+ }
119
+ /**
120
+ * Defined in:
121
+ * {@link file://./../../../dxos/client/logging.proto}
122
+ */
123
+ export interface QueryMetricsRequest {
124
+ /**
125
+ * Options:
126
+ * - proto3_optional = true
127
+ */
128
+ interval?: number;
129
+ }
130
+ /**
131
+ * Defined in:
132
+ * {@link file://./../../../dxos/client/logging.proto}
133
+ */
134
+ export interface QueryMetricsResponse {
135
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
136
+ metrics: Metrics;
137
+ }
138
+ /**
139
+ * Defined in:
140
+ * {@link file://./../../../dxos/client/logging.proto}
141
+ */
142
+ export enum LogLevel {
143
+ TRACE = 5,
144
+ DEBUG = 10,
145
+ INFO = 11,
146
+ WARN = 12,
147
+ ERROR = 13
148
+ }
149
+ /**
150
+ * Defined in:
151
+ * {@link file://./../../../dxos/client/logging.proto}
152
+ */
153
+ export interface QueryLogsRequest {
154
+ filters?: QueryLogsRequest.Filter[];
155
+ /**
156
+ * Options:
157
+ * - proto3_optional = true
158
+ */
159
+ options?: QueryLogsRequest.MatchingOptions;
160
+ }
161
+ export namespace QueryLogsRequest {
162
+ /**
163
+ * Defined in:
164
+ * {@link file://./../../../dxos/client/logging.proto}
165
+ */
166
+ export enum MatchingOptions {
167
+ INCLUSIVE = 1,
168
+ EXPLICIT = 2
169
+ }
170
+ /**
171
+ * Defined in:
172
+ * {@link file://./../../../dxos/client/logging.proto}
173
+ */
174
+ export interface Filter {
175
+ level: LogLevel;
176
+ /**
177
+ * Options:
178
+ * - proto3_optional = true
179
+ */
180
+ pattern?: string;
181
+ }
182
+ }
183
+ /**
184
+ * Defined in:
185
+ * {@link file://./../../../dxos/client/logging.proto}
186
+ */
187
+ export interface LogEntry {
188
+ level: LogLevel;
189
+ message: string;
190
+ /**
191
+ * Options:
192
+ * - proto3_optional = true
193
+ */
194
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
195
+ /**
196
+ * Options:
197
+ * - proto3_optional = true
198
+ */
199
+ meta?: LogEntry.Meta;
200
+ /**
201
+ * Options:
202
+ * - proto3_optional = true
203
+ */
204
+ error?: dxos_error.Error;
205
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
206
+ }
207
+ export namespace LogEntry {
208
+ /**
209
+ * Defined in:
210
+ * {@link file://./../../../dxos/client/logging.proto}
211
+ */
212
+ export interface Meta {
213
+ file: string;
214
+ line: number;
215
+ /**
216
+ * Options:
217
+ * - proto3_optional = true
218
+ */
219
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
220
+ /**
221
+ * Options:
222
+ * - proto3_optional = true
223
+ */
224
+ resourceId?: number;
225
+ }
226
+ }
227
+ /**
228
+ * Defined in:
229
+ * {@link file://./../../../dxos/client/logging.proto}
230
+ */
231
+ export interface LoggingService {
232
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
233
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
234
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
235
+ }
61
236
  /**
62
237
  * Defined in:
63
238
  * {@link file://./../../../dxos/client/services.proto}
@@ -767,178 +942,3 @@ export interface NetworkService {
767
942
  updateConfig: (request: UpdateConfigRequest, options?: RequestOptions) => Promise<void>;
768
943
  queryStatus: (request: void, options?: RequestOptions) => Stream<NetworkStatus>;
769
944
  }
770
- /**
771
- * Defined in:
772
- * {@link file://./../../../dxos/client/logging.proto}
773
- */
774
- export interface Metrics {
775
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
776
- values?: Metrics.KeyPair[];
777
- }
778
- export namespace Metrics {
779
- /**
780
- * Defined in:
781
- * {@link file://./../../../dxos/client/logging.proto}
782
- */
783
- export interface KeyPair {
784
- /**
785
- * Options:
786
- * - proto3_optional = true
787
- */
788
- key?: string;
789
- /**
790
- * Options:
791
- * - proto3_optional = true
792
- */
793
- value?: dxos_value.Value;
794
- /**
795
- * Options:
796
- * - proto3_optional = true
797
- */
798
- stats?: dxos_value.Stats;
799
- }
800
- }
801
- /**
802
- * Defined in:
803
- * {@link file://./../../../dxos/client/logging.proto}
804
- */
805
- export interface ControlMetricsRequest {
806
- /**
807
- * Options:
808
- * - proto3_optional = true
809
- */
810
- reset?: boolean;
811
- /**
812
- * Options:
813
- * - proto3_optional = true
814
- */
815
- record?: boolean;
816
- }
817
- /**
818
- * Defined in:
819
- * {@link file://./../../../dxos/client/logging.proto}
820
- */
821
- export interface ControlMetricsResponse {
822
- /**
823
- * Options:
824
- * - proto3_optional = true
825
- */
826
- recording?: boolean;
827
- }
828
- /**
829
- * Defined in:
830
- * {@link file://./../../../dxos/client/logging.proto}
831
- */
832
- export interface QueryMetricsRequest {
833
- /**
834
- * Options:
835
- * - proto3_optional = true
836
- */
837
- interval?: number;
838
- }
839
- /**
840
- * Defined in:
841
- * {@link file://./../../../dxos/client/logging.proto}
842
- */
843
- export interface QueryMetricsResponse {
844
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
845
- metrics: Metrics;
846
- }
847
- /**
848
- * Defined in:
849
- * {@link file://./../../../dxos/client/logging.proto}
850
- */
851
- export enum LogLevel {
852
- TRACE = 5,
853
- DEBUG = 10,
854
- INFO = 11,
855
- WARN = 12,
856
- ERROR = 13
857
- }
858
- /**
859
- * Defined in:
860
- * {@link file://./../../../dxos/client/logging.proto}
861
- */
862
- export interface QueryLogsRequest {
863
- filters?: QueryLogsRequest.Filter[];
864
- /**
865
- * Options:
866
- * - proto3_optional = true
867
- */
868
- options?: QueryLogsRequest.MatchingOptions;
869
- }
870
- export namespace QueryLogsRequest {
871
- /**
872
- * Defined in:
873
- * {@link file://./../../../dxos/client/logging.proto}
874
- */
875
- export enum MatchingOptions {
876
- INCLUSIVE = 1,
877
- EXPLICIT = 2
878
- }
879
- /**
880
- * Defined in:
881
- * {@link file://./../../../dxos/client/logging.proto}
882
- */
883
- export interface Filter {
884
- level: LogLevel;
885
- /**
886
- * Options:
887
- * - proto3_optional = true
888
- */
889
- pattern?: string;
890
- }
891
- }
892
- /**
893
- * Defined in:
894
- * {@link file://./../../../dxos/client/logging.proto}
895
- */
896
- export interface LogEntry {
897
- level: LogLevel;
898
- message: string;
899
- /**
900
- * Options:
901
- * - proto3_optional = true
902
- */
903
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
904
- /**
905
- * Options:
906
- * - proto3_optional = true
907
- */
908
- meta?: LogEntry.Meta;
909
- /**
910
- * Options:
911
- * - proto3_optional = true
912
- */
913
- error?: dxos_error.Error;
914
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
915
- }
916
- export namespace LogEntry {
917
- /**
918
- * Defined in:
919
- * {@link file://./../../../dxos/client/logging.proto}
920
- */
921
- export interface Meta {
922
- file: string;
923
- line: number;
924
- /**
925
- * Options:
926
- * - proto3_optional = true
927
- */
928
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
929
- /**
930
- * Options:
931
- * - proto3_optional = true
932
- */
933
- resourceId?: number;
934
- }
935
- }
936
- /**
937
- * Defined in:
938
- * {@link file://./../../../dxos/client/logging.proto}
939
- */
940
- export interface LoggingService {
941
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
942
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
943
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
944
- }