@miradorlabs/web-grpc 2.76.0 → 3.0.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.
- package/package.json +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +458 -967
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +0 -66
- package/proto/gateway/web/v1/ai_gateway_pb.js +687 -1634
- package/proto/gateway/web/v1/metric_gateway.ts +65 -0
- package/proto/gateway/web/v1/metric_gateway_pb.js +40 -1
- package/proto/gateway/web/v1/reference_gateway.ts +1633 -0
- package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +215 -0
- package/proto/gateway/web/v1/reference_gateway_pb.js +2768 -0
|
@@ -186,6 +186,45 @@ export function timeseriesStyleToJSON(object: TimeseriesStyle): string {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
export enum StatReduction {
|
|
190
|
+
/** STAT_REDUCTION_UNSPECIFIED - Sum of each series' latest value. */
|
|
191
|
+
STAT_REDUCTION_UNSPECIFIED = 0,
|
|
192
|
+
/**
|
|
193
|
+
* STAT_REDUCTION_COUNT - Number of series whose latest value is non-zero. A client that merges
|
|
194
|
+
* series (e.g. the principals seated to one organization member) counts the
|
|
195
|
+
* merged ones.
|
|
196
|
+
*/
|
|
197
|
+
STAT_REDUCTION_COUNT = 1,
|
|
198
|
+
UNRECOGNIZED = -1,
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function statReductionFromJSON(object: any): StatReduction {
|
|
202
|
+
switch (object) {
|
|
203
|
+
case 0:
|
|
204
|
+
case "STAT_REDUCTION_UNSPECIFIED":
|
|
205
|
+
return StatReduction.STAT_REDUCTION_UNSPECIFIED;
|
|
206
|
+
case 1:
|
|
207
|
+
case "STAT_REDUCTION_COUNT":
|
|
208
|
+
return StatReduction.STAT_REDUCTION_COUNT;
|
|
209
|
+
case -1:
|
|
210
|
+
case "UNRECOGNIZED":
|
|
211
|
+
default:
|
|
212
|
+
return StatReduction.UNRECOGNIZED;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export function statReductionToJSON(object: StatReduction): string {
|
|
217
|
+
switch (object) {
|
|
218
|
+
case StatReduction.STAT_REDUCTION_UNSPECIFIED:
|
|
219
|
+
return "STAT_REDUCTION_UNSPECIFIED";
|
|
220
|
+
case StatReduction.STAT_REDUCTION_COUNT:
|
|
221
|
+
return "STAT_REDUCTION_COUNT";
|
|
222
|
+
case StatReduction.UNRECOGNIZED:
|
|
223
|
+
default:
|
|
224
|
+
return "UNRECOGNIZED";
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
189
228
|
export interface StreamMetricsRequest {
|
|
190
229
|
/** Verified against the caller's identity before proxying. */
|
|
191
230
|
organizationId: string;
|
|
@@ -400,6 +439,11 @@ export interface Widget {
|
|
|
400
439
|
timeseriesStyle: TimeseriesStyle;
|
|
401
440
|
/** MARKDOWN widgets only: the rendered content (≤16 KiB). */
|
|
402
441
|
markdown: string;
|
|
442
|
+
/**
|
|
443
|
+
* STAT only: how the figure reduces the query's series. UNSPECIFIED sums
|
|
444
|
+
* each series' latest value.
|
|
445
|
+
*/
|
|
446
|
+
statReduction: StatReduction;
|
|
403
447
|
}
|
|
404
448
|
|
|
405
449
|
/**
|
|
@@ -3094,6 +3138,7 @@ function createBaseWidget(): Widget {
|
|
|
3094
3138
|
timeInterval: 0,
|
|
3095
3139
|
timeseriesStyle: 0,
|
|
3096
3140
|
markdown: "",
|
|
3141
|
+
statReduction: 0,
|
|
3097
3142
|
};
|
|
3098
3143
|
}
|
|
3099
3144
|
|
|
@@ -3126,6 +3171,9 @@ export const Widget: MessageFns<Widget> = {
|
|
|
3126
3171
|
if (message.markdown !== "") {
|
|
3127
3172
|
writer.uint32(74).string(message.markdown);
|
|
3128
3173
|
}
|
|
3174
|
+
if (message.statReduction !== 0) {
|
|
3175
|
+
writer.uint32(80).int32(message.statReduction);
|
|
3176
|
+
}
|
|
3129
3177
|
return writer;
|
|
3130
3178
|
},
|
|
3131
3179
|
|
|
@@ -3214,6 +3262,14 @@ export const Widget: MessageFns<Widget> = {
|
|
|
3214
3262
|
message.markdown = reader.string();
|
|
3215
3263
|
continue;
|
|
3216
3264
|
}
|
|
3265
|
+
case 10: {
|
|
3266
|
+
if (tag !== 80) {
|
|
3267
|
+
break;
|
|
3268
|
+
}
|
|
3269
|
+
|
|
3270
|
+
message.statReduction = reader.int32() as any;
|
|
3271
|
+
continue;
|
|
3272
|
+
}
|
|
3217
3273
|
}
|
|
3218
3274
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3219
3275
|
break;
|
|
@@ -3253,6 +3309,11 @@ export const Widget: MessageFns<Widget> = {
|
|
|
3253
3309
|
? timeseriesStyleFromJSON(object.timeseries_style)
|
|
3254
3310
|
: 0,
|
|
3255
3311
|
markdown: isSet(object.markdown) ? globalThis.String(object.markdown) : "",
|
|
3312
|
+
statReduction: isSet(object.statReduction)
|
|
3313
|
+
? statReductionFromJSON(object.statReduction)
|
|
3314
|
+
: isSet(object.stat_reduction)
|
|
3315
|
+
? statReductionFromJSON(object.stat_reduction)
|
|
3316
|
+
: 0,
|
|
3256
3317
|
};
|
|
3257
3318
|
},
|
|
3258
3319
|
|
|
@@ -3285,6 +3346,9 @@ export const Widget: MessageFns<Widget> = {
|
|
|
3285
3346
|
if (message.markdown !== "") {
|
|
3286
3347
|
obj.markdown = message.markdown;
|
|
3287
3348
|
}
|
|
3349
|
+
if (message.statReduction !== 0) {
|
|
3350
|
+
obj.statReduction = statReductionToJSON(message.statReduction);
|
|
3351
|
+
}
|
|
3288
3352
|
return obj;
|
|
3289
3353
|
},
|
|
3290
3354
|
|
|
@@ -3304,6 +3368,7 @@ export const Widget: MessageFns<Widget> = {
|
|
|
3304
3368
|
message.timeInterval = object.timeInterval ?? 0;
|
|
3305
3369
|
message.timeseriesStyle = object.timeseriesStyle ?? 0;
|
|
3306
3370
|
message.markdown = object.markdown ?? "";
|
|
3371
|
+
message.statReduction = object.statReduction ?? 0;
|
|
3307
3372
|
return message;
|
|
3308
3373
|
},
|
|
3309
3374
|
};
|
|
@@ -65,6 +65,7 @@ goog.exportSymbol('proto.gateway.web.v1.QueryDataEnvelope', null, global);
|
|
|
65
65
|
goog.exportSymbol('proto.gateway.web.v1.QueryDataEnvelope.EventCase', null, global);
|
|
66
66
|
goog.exportSymbol('proto.gateway.web.v1.QuerySeriesUpdate', null, global);
|
|
67
67
|
goog.exportSymbol('proto.gateway.web.v1.QuerySnapshot', null, global);
|
|
68
|
+
goog.exportSymbol('proto.gateway.web.v1.StatReduction', null, global);
|
|
68
69
|
goog.exportSymbol('proto.gateway.web.v1.StreamDashboardDataRequest', null, global);
|
|
69
70
|
goog.exportSymbol('proto.gateway.web.v1.StreamDashboardPreviewsRequest', null, global);
|
|
70
71
|
goog.exportSymbol('proto.gateway.web.v1.StreamMetricAttributesRequest', null, global);
|
|
@@ -5850,7 +5851,8 @@ queriesList: jspb.Message.toObjectList(msg.getQueriesList(),
|
|
|
5850
5851
|
timeWindow: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
5851
5852
|
timeInterval: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
5852
5853
|
timeseriesStyle: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
5853
|
-
markdown: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
5854
|
+
markdown: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
5855
|
+
statReduction: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
5854
5856
|
};
|
|
5855
5857
|
|
|
5856
5858
|
if (includeInstance) {
|
|
@@ -5925,6 +5927,10 @@ proto.gateway.web.v1.Widget.deserializeBinaryFromReader = function(msg, reader)
|
|
|
5925
5927
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5926
5928
|
msg.setMarkdown(value);
|
|
5927
5929
|
break;
|
|
5930
|
+
case 10:
|
|
5931
|
+
var value = /** @type {!proto.gateway.web.v1.StatReduction} */ (reader.readEnum());
|
|
5932
|
+
msg.setStatReduction(value);
|
|
5933
|
+
break;
|
|
5928
5934
|
default:
|
|
5929
5935
|
reader.skipField();
|
|
5930
5936
|
break;
|
|
@@ -6019,6 +6025,13 @@ proto.gateway.web.v1.Widget.serializeBinaryToWriter = function(message, writer)
|
|
|
6019
6025
|
f
|
|
6020
6026
|
);
|
|
6021
6027
|
}
|
|
6028
|
+
f = message.getStatReduction();
|
|
6029
|
+
if (f !== 0.0) {
|
|
6030
|
+
writer.writeEnum(
|
|
6031
|
+
10,
|
|
6032
|
+
f
|
|
6033
|
+
);
|
|
6034
|
+
}
|
|
6022
6035
|
};
|
|
6023
6036
|
|
|
6024
6037
|
|
|
@@ -6223,6 +6236,24 @@ proto.gateway.web.v1.Widget.prototype.setMarkdown = function(value) {
|
|
|
6223
6236
|
};
|
|
6224
6237
|
|
|
6225
6238
|
|
|
6239
|
+
/**
|
|
6240
|
+
* optional StatReduction stat_reduction = 10;
|
|
6241
|
+
* @return {!proto.gateway.web.v1.StatReduction}
|
|
6242
|
+
*/
|
|
6243
|
+
proto.gateway.web.v1.Widget.prototype.getStatReduction = function() {
|
|
6244
|
+
return /** @type {!proto.gateway.web.v1.StatReduction} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
6245
|
+
};
|
|
6246
|
+
|
|
6247
|
+
|
|
6248
|
+
/**
|
|
6249
|
+
* @param {!proto.gateway.web.v1.StatReduction} value
|
|
6250
|
+
* @return {!proto.gateway.web.v1.Widget} returns this
|
|
6251
|
+
*/
|
|
6252
|
+
proto.gateway.web.v1.Widget.prototype.setStatReduction = function(value) {
|
|
6253
|
+
return jspb.Message.setProto3EnumField(this, 10, value);
|
|
6254
|
+
};
|
|
6255
|
+
|
|
6256
|
+
|
|
6226
6257
|
|
|
6227
6258
|
|
|
6228
6259
|
|
|
@@ -12027,4 +12058,12 @@ proto.gateway.web.v1.TimeseriesStyle = {
|
|
|
12027
12058
|
TIMESERIES_STYLE_STACKED_BAR: 4
|
|
12028
12059
|
};
|
|
12029
12060
|
|
|
12061
|
+
/**
|
|
12062
|
+
* @enum {number}
|
|
12063
|
+
*/
|
|
12064
|
+
proto.gateway.web.v1.StatReduction = {
|
|
12065
|
+
STAT_REDUCTION_UNSPECIFIED: 0,
|
|
12066
|
+
STAT_REDUCTION_COUNT: 1
|
|
12067
|
+
};
|
|
12068
|
+
|
|
12030
12069
|
goog.object.extend(exports, proto.gateway.web.v1);
|