@miradorlabs/web-grpc 2.5.0 → 2.6.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
CHANGED
|
@@ -75,6 +75,11 @@ export interface LogEntry {
|
|
|
75
75
|
eventName: string;
|
|
76
76
|
scopeName: string;
|
|
77
77
|
scopeVersion: string;
|
|
78
|
+
/** Raw OTLP LogRecord flags word (low byte = W3C trace flags). */
|
|
79
|
+
flags: number;
|
|
80
|
+
/** Unset for records ingested before observed time was stored. */
|
|
81
|
+
observedTime: Date | undefined;
|
|
82
|
+
droppedAttributesCount: number;
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
export interface LogEntry_AttributesEntry {
|
|
@@ -482,6 +487,9 @@ function createBaseLogEntry(): LogEntry {
|
|
|
482
487
|
eventName: "",
|
|
483
488
|
scopeName: "",
|
|
484
489
|
scopeVersion: "",
|
|
490
|
+
flags: 0,
|
|
491
|
+
observedTime: undefined,
|
|
492
|
+
droppedAttributesCount: 0,
|
|
485
493
|
};
|
|
486
494
|
}
|
|
487
495
|
|
|
@@ -523,6 +531,15 @@ export const LogEntry: MessageFns<LogEntry> = {
|
|
|
523
531
|
if (message.scopeVersion !== "") {
|
|
524
532
|
writer.uint32(98).string(message.scopeVersion);
|
|
525
533
|
}
|
|
534
|
+
if (message.flags !== 0) {
|
|
535
|
+
writer.uint32(104).uint32(message.flags);
|
|
536
|
+
}
|
|
537
|
+
if (message.observedTime !== undefined) {
|
|
538
|
+
Timestamp.encode(toTimestamp(message.observedTime), writer.uint32(114).fork()).join();
|
|
539
|
+
}
|
|
540
|
+
if (message.droppedAttributesCount !== 0) {
|
|
541
|
+
writer.uint32(120).uint32(message.droppedAttributesCount);
|
|
542
|
+
}
|
|
526
543
|
return writer;
|
|
527
544
|
},
|
|
528
545
|
|
|
@@ -635,6 +652,30 @@ export const LogEntry: MessageFns<LogEntry> = {
|
|
|
635
652
|
message.scopeVersion = reader.string();
|
|
636
653
|
continue;
|
|
637
654
|
}
|
|
655
|
+
case 13: {
|
|
656
|
+
if (tag !== 104) {
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
message.flags = reader.uint32();
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
case 14: {
|
|
664
|
+
if (tag !== 114) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
message.observedTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
669
|
+
continue;
|
|
670
|
+
}
|
|
671
|
+
case 15: {
|
|
672
|
+
if (tag !== 120) {
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
message.droppedAttributesCount = reader.uint32();
|
|
677
|
+
continue;
|
|
678
|
+
}
|
|
638
679
|
}
|
|
639
680
|
if ((tag & 7) === 4 || tag === 0) {
|
|
640
681
|
break;
|
|
@@ -714,6 +755,17 @@ export const LogEntry: MessageFns<LogEntry> = {
|
|
|
714
755
|
: isSet(object.scope_version)
|
|
715
756
|
? globalThis.String(object.scope_version)
|
|
716
757
|
: "",
|
|
758
|
+
flags: isSet(object.flags) ? globalThis.Number(object.flags) : 0,
|
|
759
|
+
observedTime: isSet(object.observedTime)
|
|
760
|
+
? fromJsonTimestamp(object.observedTime)
|
|
761
|
+
: isSet(object.observed_time)
|
|
762
|
+
? fromJsonTimestamp(object.observed_time)
|
|
763
|
+
: undefined,
|
|
764
|
+
droppedAttributesCount: isSet(object.droppedAttributesCount)
|
|
765
|
+
? globalThis.Number(object.droppedAttributesCount)
|
|
766
|
+
: isSet(object.dropped_attributes_count)
|
|
767
|
+
? globalThis.Number(object.dropped_attributes_count)
|
|
768
|
+
: 0,
|
|
717
769
|
};
|
|
718
770
|
},
|
|
719
771
|
|
|
@@ -767,6 +819,15 @@ export const LogEntry: MessageFns<LogEntry> = {
|
|
|
767
819
|
if (message.scopeVersion !== "") {
|
|
768
820
|
obj.scopeVersion = message.scopeVersion;
|
|
769
821
|
}
|
|
822
|
+
if (message.flags !== 0) {
|
|
823
|
+
obj.flags = Math.round(message.flags);
|
|
824
|
+
}
|
|
825
|
+
if (message.observedTime !== undefined) {
|
|
826
|
+
obj.observedTime = message.observedTime.toISOString();
|
|
827
|
+
}
|
|
828
|
+
if (message.droppedAttributesCount !== 0) {
|
|
829
|
+
obj.droppedAttributesCount = Math.round(message.droppedAttributesCount);
|
|
830
|
+
}
|
|
770
831
|
return obj;
|
|
771
832
|
},
|
|
772
833
|
|
|
@@ -801,6 +862,9 @@ export const LogEntry: MessageFns<LogEntry> = {
|
|
|
801
862
|
message.eventName = object.eventName ?? "";
|
|
802
863
|
message.scopeName = object.scopeName ?? "";
|
|
803
864
|
message.scopeVersion = object.scopeVersion ?? "";
|
|
865
|
+
message.flags = object.flags ?? 0;
|
|
866
|
+
message.observedTime = object.observedTime ?? undefined;
|
|
867
|
+
message.droppedAttributesCount = object.droppedAttributesCount ?? 0;
|
|
804
868
|
return message;
|
|
805
869
|
},
|
|
806
870
|
};
|
|
@@ -1098,7 +1098,10 @@ traceId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
|
1098
1098
|
spanId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1099
1099
|
eventName: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
1100
1100
|
scopeName: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
1101
|
-
scopeVersion: jspb.Message.getFieldWithDefault(msg, 12, "")
|
|
1101
|
+
scopeVersion: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
1102
|
+
flags: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
1103
|
+
observedTime: (f = msg.getObservedTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
1104
|
+
droppedAttributesCount: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
1102
1105
|
};
|
|
1103
1106
|
|
|
1104
1107
|
if (includeInstance) {
|
|
@@ -1188,6 +1191,19 @@ proto.gateway.web.v1.LogEntry.deserializeBinaryFromReader = function(msg, reader
|
|
|
1188
1191
|
var value = /** @type {string} */ (reader.readString());
|
|
1189
1192
|
msg.setScopeVersion(value);
|
|
1190
1193
|
break;
|
|
1194
|
+
case 13:
|
|
1195
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1196
|
+
msg.setFlags(value);
|
|
1197
|
+
break;
|
|
1198
|
+
case 14:
|
|
1199
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1200
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1201
|
+
msg.setObservedTime(value);
|
|
1202
|
+
break;
|
|
1203
|
+
case 15:
|
|
1204
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1205
|
+
msg.setDroppedAttributesCount(value);
|
|
1206
|
+
break;
|
|
1191
1207
|
default:
|
|
1192
1208
|
reader.skipField();
|
|
1193
1209
|
break;
|
|
@@ -1296,6 +1312,28 @@ proto.gateway.web.v1.LogEntry.serializeBinaryToWriter = function(message, writer
|
|
|
1296
1312
|
f
|
|
1297
1313
|
);
|
|
1298
1314
|
}
|
|
1315
|
+
f = message.getFlags();
|
|
1316
|
+
if (f !== 0) {
|
|
1317
|
+
writer.writeUint32(
|
|
1318
|
+
13,
|
|
1319
|
+
f
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
f = message.getObservedTime();
|
|
1323
|
+
if (f != null) {
|
|
1324
|
+
writer.writeMessage(
|
|
1325
|
+
14,
|
|
1326
|
+
f,
|
|
1327
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1328
|
+
);
|
|
1329
|
+
}
|
|
1330
|
+
f = message.getDroppedAttributesCount();
|
|
1331
|
+
if (f !== 0) {
|
|
1332
|
+
writer.writeUint32(
|
|
1333
|
+
15,
|
|
1334
|
+
f
|
|
1335
|
+
);
|
|
1336
|
+
}
|
|
1299
1337
|
};
|
|
1300
1338
|
|
|
1301
1339
|
|
|
@@ -1544,6 +1582,79 @@ proto.gateway.web.v1.LogEntry.prototype.setScopeVersion = function(value) {
|
|
|
1544
1582
|
};
|
|
1545
1583
|
|
|
1546
1584
|
|
|
1585
|
+
/**
|
|
1586
|
+
* optional uint32 flags = 13;
|
|
1587
|
+
* @return {number}
|
|
1588
|
+
*/
|
|
1589
|
+
proto.gateway.web.v1.LogEntry.prototype.getFlags = function() {
|
|
1590
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* @param {number} value
|
|
1596
|
+
* @return {!proto.gateway.web.v1.LogEntry} returns this
|
|
1597
|
+
*/
|
|
1598
|
+
proto.gateway.web.v1.LogEntry.prototype.setFlags = function(value) {
|
|
1599
|
+
return jspb.Message.setProto3IntField(this, 13, value);
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* optional google.protobuf.Timestamp observed_time = 14;
|
|
1605
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1606
|
+
*/
|
|
1607
|
+
proto.gateway.web.v1.LogEntry.prototype.getObservedTime = function() {
|
|
1608
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1609
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 14));
|
|
1610
|
+
};
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1615
|
+
* @return {!proto.gateway.web.v1.LogEntry} returns this
|
|
1616
|
+
*/
|
|
1617
|
+
proto.gateway.web.v1.LogEntry.prototype.setObservedTime = function(value) {
|
|
1618
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Clears the message field making it undefined.
|
|
1624
|
+
* @return {!proto.gateway.web.v1.LogEntry} returns this
|
|
1625
|
+
*/
|
|
1626
|
+
proto.gateway.web.v1.LogEntry.prototype.clearObservedTime = function() {
|
|
1627
|
+
return this.setObservedTime(undefined);
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Returns whether this field is set.
|
|
1633
|
+
* @return {boolean}
|
|
1634
|
+
*/
|
|
1635
|
+
proto.gateway.web.v1.LogEntry.prototype.hasObservedTime = function() {
|
|
1636
|
+
return jspb.Message.getField(this, 14) != null;
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* optional uint32 dropped_attributes_count = 15;
|
|
1642
|
+
* @return {number}
|
|
1643
|
+
*/
|
|
1644
|
+
proto.gateway.web.v1.LogEntry.prototype.getDroppedAttributesCount = function() {
|
|
1645
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* @param {number} value
|
|
1651
|
+
* @return {!proto.gateway.web.v1.LogEntry} returns this
|
|
1652
|
+
*/
|
|
1653
|
+
proto.gateway.web.v1.LogEntry.prototype.setDroppedAttributesCount = function(value) {
|
|
1654
|
+
return jspb.Message.setProto3IntField(this, 15, value);
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
|
|
1547
1658
|
|
|
1548
1659
|
|
|
1549
1660
|
|
|
@@ -27,6 +27,7 @@ export enum MetricKind {
|
|
|
27
27
|
METRIC_KIND_GAUGE = 1,
|
|
28
28
|
METRIC_KIND_SUM = 2,
|
|
29
29
|
METRIC_KIND_HISTOGRAM = 3,
|
|
30
|
+
METRIC_KIND_EXPONENTIAL_HISTOGRAM = 4,
|
|
30
31
|
UNRECOGNIZED = -1,
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -44,6 +45,9 @@ export function metricKindFromJSON(object: any): MetricKind {
|
|
|
44
45
|
case 3:
|
|
45
46
|
case "METRIC_KIND_HISTOGRAM":
|
|
46
47
|
return MetricKind.METRIC_KIND_HISTOGRAM;
|
|
48
|
+
case 4:
|
|
49
|
+
case "METRIC_KIND_EXPONENTIAL_HISTOGRAM":
|
|
50
|
+
return MetricKind.METRIC_KIND_EXPONENTIAL_HISTOGRAM;
|
|
47
51
|
case -1:
|
|
48
52
|
case "UNRECOGNIZED":
|
|
49
53
|
default:
|
|
@@ -61,6 +65,8 @@ export function metricKindToJSON(object: MetricKind): string {
|
|
|
61
65
|
return "METRIC_KIND_SUM";
|
|
62
66
|
case MetricKind.METRIC_KIND_HISTOGRAM:
|
|
63
67
|
return "METRIC_KIND_HISTOGRAM";
|
|
68
|
+
case MetricKind.METRIC_KIND_EXPONENTIAL_HISTOGRAM:
|
|
69
|
+
return "METRIC_KIND_EXPONENTIAL_HISTOGRAM";
|
|
64
70
|
case MetricKind.UNRECOGNIZED:
|
|
65
71
|
default:
|
|
66
72
|
return "UNRECOGNIZED";
|
|
@@ -242,6 +248,64 @@ export function histogramAggregationToJSON(object: HistogramAggregation): string
|
|
|
242
248
|
}
|
|
243
249
|
}
|
|
244
250
|
|
|
251
|
+
export enum ExponentialHistogramAggregation {
|
|
252
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED = 0,
|
|
253
|
+
/** EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE - Percentile from exponential buckets; reads ExponentialHistogramQuerySpec.quantile. */
|
|
254
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE = 1,
|
|
255
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG = 2,
|
|
256
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN = 3,
|
|
257
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX = 4,
|
|
258
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT = 5,
|
|
259
|
+
UNRECOGNIZED = -1,
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export function exponentialHistogramAggregationFromJSON(object: any): ExponentialHistogramAggregation {
|
|
263
|
+
switch (object) {
|
|
264
|
+
case 0:
|
|
265
|
+
case "EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED":
|
|
266
|
+
return ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED;
|
|
267
|
+
case 1:
|
|
268
|
+
case "EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE":
|
|
269
|
+
return ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE;
|
|
270
|
+
case 2:
|
|
271
|
+
case "EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG":
|
|
272
|
+
return ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG;
|
|
273
|
+
case 3:
|
|
274
|
+
case "EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN":
|
|
275
|
+
return ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN;
|
|
276
|
+
case 4:
|
|
277
|
+
case "EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX":
|
|
278
|
+
return ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX;
|
|
279
|
+
case 5:
|
|
280
|
+
case "EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT":
|
|
281
|
+
return ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT;
|
|
282
|
+
case -1:
|
|
283
|
+
case "UNRECOGNIZED":
|
|
284
|
+
default:
|
|
285
|
+
return ExponentialHistogramAggregation.UNRECOGNIZED;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export function exponentialHistogramAggregationToJSON(object: ExponentialHistogramAggregation): string {
|
|
290
|
+
switch (object) {
|
|
291
|
+
case ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED:
|
|
292
|
+
return "EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED";
|
|
293
|
+
case ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE:
|
|
294
|
+
return "EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE";
|
|
295
|
+
case ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG:
|
|
296
|
+
return "EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG";
|
|
297
|
+
case ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN:
|
|
298
|
+
return "EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN";
|
|
299
|
+
case ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX:
|
|
300
|
+
return "EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX";
|
|
301
|
+
case ExponentialHistogramAggregation.EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT:
|
|
302
|
+
return "EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT";
|
|
303
|
+
case ExponentialHistogramAggregation.UNRECOGNIZED:
|
|
304
|
+
default:
|
|
305
|
+
return "UNRECOGNIZED";
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
245
309
|
export enum AttributeFilterOp {
|
|
246
310
|
ATTRIBUTE_FILTER_OP_UNSPECIFIED = 0,
|
|
247
311
|
ATTRIBUTE_FILTER_OP_EQUALS = 1,
|
|
@@ -472,8 +536,9 @@ export interface MetricQuery {
|
|
|
472
536
|
metricName: string;
|
|
473
537
|
gauge?: GaugeQuerySpec | undefined;
|
|
474
538
|
sum?: SumQuerySpec | undefined;
|
|
475
|
-
histogram?:
|
|
476
|
-
|
|
539
|
+
histogram?: HistogramQuerySpec | undefined;
|
|
540
|
+
exponentialHistogram?:
|
|
541
|
+
| ExponentialHistogramQuerySpec
|
|
477
542
|
| undefined;
|
|
478
543
|
/** ≤16 filters, ANDed. Keys resolve point attributes first, then resource. */
|
|
479
544
|
filters: AttributeFilter[];
|
|
@@ -503,6 +568,12 @@ export interface HistogramQuerySpec {
|
|
|
503
568
|
quantile: number;
|
|
504
569
|
}
|
|
505
570
|
|
|
571
|
+
export interface ExponentialHistogramQuerySpec {
|
|
572
|
+
aggregation: ExponentialHistogramAggregation;
|
|
573
|
+
/** Quantile level in (0,1); required iff aggregation == QUANTILE. */
|
|
574
|
+
quantile: number;
|
|
575
|
+
}
|
|
576
|
+
|
|
506
577
|
export interface AttributeFilter {
|
|
507
578
|
key: string;
|
|
508
579
|
op: AttributeFilterOp;
|
|
@@ -1542,6 +1613,7 @@ function createBaseMetricQuery(): MetricQuery {
|
|
|
1542
1613
|
gauge: undefined,
|
|
1543
1614
|
sum: undefined,
|
|
1544
1615
|
histogram: undefined,
|
|
1616
|
+
exponentialHistogram: undefined,
|
|
1545
1617
|
filters: [],
|
|
1546
1618
|
groupBy: [],
|
|
1547
1619
|
groupLimit: 0,
|
|
@@ -1562,6 +1634,9 @@ export const MetricQuery: MessageFns<MetricQuery> = {
|
|
|
1562
1634
|
if (message.histogram !== undefined) {
|
|
1563
1635
|
HistogramQuerySpec.encode(message.histogram, writer.uint32(34).fork()).join();
|
|
1564
1636
|
}
|
|
1637
|
+
if (message.exponentialHistogram !== undefined) {
|
|
1638
|
+
ExponentialHistogramQuerySpec.encode(message.exponentialHistogram, writer.uint32(66).fork()).join();
|
|
1639
|
+
}
|
|
1565
1640
|
for (const v of message.filters) {
|
|
1566
1641
|
AttributeFilter.encode(v!, writer.uint32(42).fork()).join();
|
|
1567
1642
|
}
|
|
@@ -1613,6 +1688,14 @@ export const MetricQuery: MessageFns<MetricQuery> = {
|
|
|
1613
1688
|
message.histogram = HistogramQuerySpec.decode(reader, reader.uint32());
|
|
1614
1689
|
continue;
|
|
1615
1690
|
}
|
|
1691
|
+
case 8: {
|
|
1692
|
+
if (tag !== 66) {
|
|
1693
|
+
break;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
message.exponentialHistogram = ExponentialHistogramQuerySpec.decode(reader, reader.uint32());
|
|
1697
|
+
continue;
|
|
1698
|
+
}
|
|
1616
1699
|
case 5: {
|
|
1617
1700
|
if (tag !== 42) {
|
|
1618
1701
|
break;
|
|
@@ -1656,6 +1739,11 @@ export const MetricQuery: MessageFns<MetricQuery> = {
|
|
|
1656
1739
|
gauge: isSet(object.gauge) ? GaugeQuerySpec.fromJSON(object.gauge) : undefined,
|
|
1657
1740
|
sum: isSet(object.sum) ? SumQuerySpec.fromJSON(object.sum) : undefined,
|
|
1658
1741
|
histogram: isSet(object.histogram) ? HistogramQuerySpec.fromJSON(object.histogram) : undefined,
|
|
1742
|
+
exponentialHistogram: isSet(object.exponentialHistogram)
|
|
1743
|
+
? ExponentialHistogramQuerySpec.fromJSON(object.exponentialHistogram)
|
|
1744
|
+
: isSet(object.exponential_histogram)
|
|
1745
|
+
? ExponentialHistogramQuerySpec.fromJSON(object.exponential_histogram)
|
|
1746
|
+
: undefined,
|
|
1659
1747
|
filters: globalThis.Array.isArray(object?.filters)
|
|
1660
1748
|
? object.filters.map((e: any) => AttributeFilter.fromJSON(e))
|
|
1661
1749
|
: [],
|
|
@@ -1686,6 +1774,9 @@ export const MetricQuery: MessageFns<MetricQuery> = {
|
|
|
1686
1774
|
if (message.histogram !== undefined) {
|
|
1687
1775
|
obj.histogram = HistogramQuerySpec.toJSON(message.histogram);
|
|
1688
1776
|
}
|
|
1777
|
+
if (message.exponentialHistogram !== undefined) {
|
|
1778
|
+
obj.exponentialHistogram = ExponentialHistogramQuerySpec.toJSON(message.exponentialHistogram);
|
|
1779
|
+
}
|
|
1689
1780
|
if (message.filters?.length) {
|
|
1690
1781
|
obj.filters = message.filters.map((e) => AttributeFilter.toJSON(e));
|
|
1691
1782
|
}
|
|
@@ -1711,6 +1802,9 @@ export const MetricQuery: MessageFns<MetricQuery> = {
|
|
|
1711
1802
|
message.histogram = (object.histogram !== undefined && object.histogram !== null)
|
|
1712
1803
|
? HistogramQuerySpec.fromPartial(object.histogram)
|
|
1713
1804
|
: undefined;
|
|
1805
|
+
message.exponentialHistogram = (object.exponentialHistogram !== undefined && object.exponentialHistogram !== null)
|
|
1806
|
+
? ExponentialHistogramQuerySpec.fromPartial(object.exponentialHistogram)
|
|
1807
|
+
: undefined;
|
|
1714
1808
|
message.filters = object.filters?.map((e) => AttributeFilter.fromPartial(e)) || [];
|
|
1715
1809
|
message.groupBy = object.groupBy?.map((e) => e) || [];
|
|
1716
1810
|
message.groupLimit = object.groupLimit ?? 0;
|
|
@@ -1910,6 +2004,84 @@ export const HistogramQuerySpec: MessageFns<HistogramQuerySpec> = {
|
|
|
1910
2004
|
},
|
|
1911
2005
|
};
|
|
1912
2006
|
|
|
2007
|
+
function createBaseExponentialHistogramQuerySpec(): ExponentialHistogramQuerySpec {
|
|
2008
|
+
return { aggregation: 0, quantile: 0 };
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
export const ExponentialHistogramQuerySpec: MessageFns<ExponentialHistogramQuerySpec> = {
|
|
2012
|
+
encode(message: ExponentialHistogramQuerySpec, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
2013
|
+
if (message.aggregation !== 0) {
|
|
2014
|
+
writer.uint32(8).int32(message.aggregation);
|
|
2015
|
+
}
|
|
2016
|
+
if (message.quantile !== 0) {
|
|
2017
|
+
writer.uint32(17).double(message.quantile);
|
|
2018
|
+
}
|
|
2019
|
+
return writer;
|
|
2020
|
+
},
|
|
2021
|
+
|
|
2022
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ExponentialHistogramQuerySpec {
|
|
2023
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2024
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2025
|
+
const message = createBaseExponentialHistogramQuerySpec();
|
|
2026
|
+
while (reader.pos < end) {
|
|
2027
|
+
const tag = reader.uint32();
|
|
2028
|
+
switch (tag >>> 3) {
|
|
2029
|
+
case 1: {
|
|
2030
|
+
if (tag !== 8) {
|
|
2031
|
+
break;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
message.aggregation = reader.int32() as any;
|
|
2035
|
+
continue;
|
|
2036
|
+
}
|
|
2037
|
+
case 2: {
|
|
2038
|
+
if (tag !== 17) {
|
|
2039
|
+
break;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
message.quantile = reader.double();
|
|
2043
|
+
continue;
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2047
|
+
break;
|
|
2048
|
+
}
|
|
2049
|
+
reader.skip(tag & 7);
|
|
2050
|
+
}
|
|
2051
|
+
return message;
|
|
2052
|
+
},
|
|
2053
|
+
|
|
2054
|
+
fromJSON(object: any): ExponentialHistogramQuerySpec {
|
|
2055
|
+
return {
|
|
2056
|
+
aggregation: isSet(object.aggregation) ? exponentialHistogramAggregationFromJSON(object.aggregation) : 0,
|
|
2057
|
+
quantile: isSet(object.quantile) ? globalThis.Number(object.quantile) : 0,
|
|
2058
|
+
};
|
|
2059
|
+
},
|
|
2060
|
+
|
|
2061
|
+
toJSON(message: ExponentialHistogramQuerySpec): unknown {
|
|
2062
|
+
const obj: any = {};
|
|
2063
|
+
if (message.aggregation !== 0) {
|
|
2064
|
+
obj.aggregation = exponentialHistogramAggregationToJSON(message.aggregation);
|
|
2065
|
+
}
|
|
2066
|
+
if (message.quantile !== 0) {
|
|
2067
|
+
obj.quantile = message.quantile;
|
|
2068
|
+
}
|
|
2069
|
+
return obj;
|
|
2070
|
+
},
|
|
2071
|
+
|
|
2072
|
+
create<I extends Exact<DeepPartial<ExponentialHistogramQuerySpec>, I>>(base?: I): ExponentialHistogramQuerySpec {
|
|
2073
|
+
return ExponentialHistogramQuerySpec.fromPartial(base ?? ({} as any));
|
|
2074
|
+
},
|
|
2075
|
+
fromPartial<I extends Exact<DeepPartial<ExponentialHistogramQuerySpec>, I>>(
|
|
2076
|
+
object: I,
|
|
2077
|
+
): ExponentialHistogramQuerySpec {
|
|
2078
|
+
const message = createBaseExponentialHistogramQuerySpec();
|
|
2079
|
+
message.aggregation = object.aggregation ?? 0;
|
|
2080
|
+
message.quantile = object.quantile ?? 0;
|
|
2081
|
+
return message;
|
|
2082
|
+
},
|
|
2083
|
+
};
|
|
2084
|
+
|
|
1913
2085
|
function createBaseAttributeFilter(): AttributeFilter {
|
|
1914
2086
|
return { key: "", op: 0, values: [] };
|
|
1915
2087
|
}
|
|
@@ -38,6 +38,8 @@ goog.exportSymbol('proto.gateway.web.v1.DashboardDataEnvelope.EventCase', null,
|
|
|
38
38
|
goog.exportSymbol('proto.gateway.web.v1.DashboardSummary', null, global);
|
|
39
39
|
goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.gateway.web.v1.DeleteDashboardResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.gateway.web.v1.ExponentialHistogramAggregation', null, global);
|
|
42
|
+
goog.exportSymbol('proto.gateway.web.v1.ExponentialHistogramQuerySpec', null, global);
|
|
41
43
|
goog.exportSymbol('proto.gateway.web.v1.GaugeAggregation', null, global);
|
|
42
44
|
goog.exportSymbol('proto.gateway.web.v1.GaugeQuerySpec', null, global);
|
|
43
45
|
goog.exportSymbol('proto.gateway.web.v1.GetDashboardRequest', null, global);
|
|
@@ -351,6 +353,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
351
353
|
*/
|
|
352
354
|
proto.gateway.web.v1.HistogramQuerySpec.displayName = 'proto.gateway.web.v1.HistogramQuerySpec';
|
|
353
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* Generated by JsPbCodeGenerator.
|
|
358
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
359
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
360
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
361
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
362
|
+
* valid.
|
|
363
|
+
* @extends {jspb.Message}
|
|
364
|
+
* @constructor
|
|
365
|
+
*/
|
|
366
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec = function(opt_data) {
|
|
367
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
368
|
+
};
|
|
369
|
+
goog.inherits(proto.gateway.web.v1.ExponentialHistogramQuerySpec, jspb.Message);
|
|
370
|
+
if (goog.DEBUG && !COMPILED) {
|
|
371
|
+
/**
|
|
372
|
+
* @public
|
|
373
|
+
* @override
|
|
374
|
+
*/
|
|
375
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.displayName = 'proto.gateway.web.v1.ExponentialHistogramQuerySpec';
|
|
376
|
+
}
|
|
354
377
|
/**
|
|
355
378
|
* Generated by JsPbCodeGenerator.
|
|
356
379
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2686,7 +2709,7 @@ proto.gateway.web.v1.MetricQuery.repeatedFields_ = [5,6];
|
|
|
2686
2709
|
* @private {!Array<!Array<number>>}
|
|
2687
2710
|
* @const
|
|
2688
2711
|
*/
|
|
2689
|
-
proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4]];
|
|
2712
|
+
proto.gateway.web.v1.MetricQuery.oneofGroups_ = [[2,3,4,8]];
|
|
2690
2713
|
|
|
2691
2714
|
/**
|
|
2692
2715
|
* @enum {number}
|
|
@@ -2695,7 +2718,8 @@ proto.gateway.web.v1.MetricQuery.KindCase = {
|
|
|
2695
2718
|
KIND_NOT_SET: 0,
|
|
2696
2719
|
GAUGE: 2,
|
|
2697
2720
|
SUM: 3,
|
|
2698
|
-
HISTOGRAM: 4
|
|
2721
|
+
HISTOGRAM: 4,
|
|
2722
|
+
EXPONENTIAL_HISTOGRAM: 8
|
|
2699
2723
|
};
|
|
2700
2724
|
|
|
2701
2725
|
/**
|
|
@@ -2740,6 +2764,7 @@ metricName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
2740
2764
|
gauge: (f = msg.getGauge()) && proto.gateway.web.v1.GaugeQuerySpec.toObject(includeInstance, f),
|
|
2741
2765
|
sum: (f = msg.getSum()) && proto.gateway.web.v1.SumQuerySpec.toObject(includeInstance, f),
|
|
2742
2766
|
histogram: (f = msg.getHistogram()) && proto.gateway.web.v1.HistogramQuerySpec.toObject(includeInstance, f),
|
|
2767
|
+
exponentialHistogram: (f = msg.getExponentialHistogram()) && proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(includeInstance, f),
|
|
2743
2768
|
filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
|
|
2744
2769
|
proto.gateway.web.v1.AttributeFilter.toObject, includeInstance),
|
|
2745
2770
|
groupByList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
|
@@ -2799,6 +2824,11 @@ proto.gateway.web.v1.MetricQuery.deserializeBinaryFromReader = function(msg, rea
|
|
|
2799
2824
|
reader.readMessage(value,proto.gateway.web.v1.HistogramQuerySpec.deserializeBinaryFromReader);
|
|
2800
2825
|
msg.setHistogram(value);
|
|
2801
2826
|
break;
|
|
2827
|
+
case 8:
|
|
2828
|
+
var value = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
|
|
2829
|
+
reader.readMessage(value,proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader);
|
|
2830
|
+
msg.setExponentialHistogram(value);
|
|
2831
|
+
break;
|
|
2802
2832
|
case 5:
|
|
2803
2833
|
var value = new proto.gateway.web.v1.AttributeFilter;
|
|
2804
2834
|
reader.readMessage(value,proto.gateway.web.v1.AttributeFilter.deserializeBinaryFromReader);
|
|
@@ -2872,6 +2902,14 @@ proto.gateway.web.v1.MetricQuery.serializeBinaryToWriter = function(message, wri
|
|
|
2872
2902
|
proto.gateway.web.v1.HistogramQuerySpec.serializeBinaryToWriter
|
|
2873
2903
|
);
|
|
2874
2904
|
}
|
|
2905
|
+
f = message.getExponentialHistogram();
|
|
2906
|
+
if (f != null) {
|
|
2907
|
+
writer.writeMessage(
|
|
2908
|
+
8,
|
|
2909
|
+
f,
|
|
2910
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter
|
|
2911
|
+
);
|
|
2912
|
+
}
|
|
2875
2913
|
f = message.getFiltersList();
|
|
2876
2914
|
if (f.length > 0) {
|
|
2877
2915
|
writer.writeRepeatedMessage(
|
|
@@ -3026,6 +3064,43 @@ proto.gateway.web.v1.MetricQuery.prototype.hasHistogram = function() {
|
|
|
3026
3064
|
};
|
|
3027
3065
|
|
|
3028
3066
|
|
|
3067
|
+
/**
|
|
3068
|
+
* optional ExponentialHistogramQuerySpec exponential_histogram = 8;
|
|
3069
|
+
* @return {?proto.gateway.web.v1.ExponentialHistogramQuerySpec}
|
|
3070
|
+
*/
|
|
3071
|
+
proto.gateway.web.v1.MetricQuery.prototype.getExponentialHistogram = function() {
|
|
3072
|
+
return /** @type{?proto.gateway.web.v1.ExponentialHistogramQuerySpec} */ (
|
|
3073
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.ExponentialHistogramQuerySpec, 8));
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
|
|
3077
|
+
/**
|
|
3078
|
+
* @param {?proto.gateway.web.v1.ExponentialHistogramQuerySpec|undefined} value
|
|
3079
|
+
* @return {!proto.gateway.web.v1.MetricQuery} returns this
|
|
3080
|
+
*/
|
|
3081
|
+
proto.gateway.web.v1.MetricQuery.prototype.setExponentialHistogram = function(value) {
|
|
3082
|
+
return jspb.Message.setOneofWrapperField(this, 8, proto.gateway.web.v1.MetricQuery.oneofGroups_[0], value);
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* Clears the message field making it undefined.
|
|
3088
|
+
* @return {!proto.gateway.web.v1.MetricQuery} returns this
|
|
3089
|
+
*/
|
|
3090
|
+
proto.gateway.web.v1.MetricQuery.prototype.clearExponentialHistogram = function() {
|
|
3091
|
+
return this.setExponentialHistogram(undefined);
|
|
3092
|
+
};
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Returns whether this field is set.
|
|
3097
|
+
* @return {boolean}
|
|
3098
|
+
*/
|
|
3099
|
+
proto.gateway.web.v1.MetricQuery.prototype.hasExponentialHistogram = function() {
|
|
3100
|
+
return jspb.Message.getField(this, 8) != null;
|
|
3101
|
+
};
|
|
3102
|
+
|
|
3103
|
+
|
|
3029
3104
|
/**
|
|
3030
3105
|
* repeated AttributeFilter filters = 5;
|
|
3031
3106
|
* @return {!Array<!proto.gateway.web.v1.AttributeFilter>}
|
|
@@ -3540,6 +3615,166 @@ proto.gateway.web.v1.HistogramQuerySpec.prototype.setQuantile = function(value)
|
|
|
3540
3615
|
|
|
3541
3616
|
|
|
3542
3617
|
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3621
|
+
/**
|
|
3622
|
+
* Creates an object representation of this proto.
|
|
3623
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3624
|
+
* Optional fields that are not set will be set to undefined.
|
|
3625
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3626
|
+
* For the list of reserved names please see:
|
|
3627
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3628
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3629
|
+
* JSPB instance for transitional soy proto support:
|
|
3630
|
+
* http://goto/soy-param-migration
|
|
3631
|
+
* @return {!Object}
|
|
3632
|
+
*/
|
|
3633
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.toObject = function(opt_includeInstance) {
|
|
3634
|
+
return proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject(opt_includeInstance, this);
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* Static version of the {@see toObject} method.
|
|
3640
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3641
|
+
* the JSPB instance for transitional soy proto support:
|
|
3642
|
+
* http://goto/soy-param-migration
|
|
3643
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The msg instance to transform.
|
|
3644
|
+
* @return {!Object}
|
|
3645
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3646
|
+
*/
|
|
3647
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.toObject = function(includeInstance, msg) {
|
|
3648
|
+
var f, obj = {
|
|
3649
|
+
aggregation: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3650
|
+
quantile: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
3651
|
+
};
|
|
3652
|
+
|
|
3653
|
+
if (includeInstance) {
|
|
3654
|
+
obj.$jspbMessageInstance = msg;
|
|
3655
|
+
}
|
|
3656
|
+
return obj;
|
|
3657
|
+
};
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
|
|
3661
|
+
/**
|
|
3662
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3663
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3664
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
|
|
3665
|
+
*/
|
|
3666
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinary = function(bytes) {
|
|
3667
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3668
|
+
var msg = new proto.gateway.web.v1.ExponentialHistogramQuerySpec;
|
|
3669
|
+
return proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader(msg, reader);
|
|
3670
|
+
};
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3675
|
+
* given reader into the given message object.
|
|
3676
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} msg The message object to deserialize into.
|
|
3677
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3678
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec}
|
|
3679
|
+
*/
|
|
3680
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.deserializeBinaryFromReader = function(msg, reader) {
|
|
3681
|
+
while (reader.nextField()) {
|
|
3682
|
+
if (reader.isEndGroup()) {
|
|
3683
|
+
break;
|
|
3684
|
+
}
|
|
3685
|
+
var field = reader.getFieldNumber();
|
|
3686
|
+
switch (field) {
|
|
3687
|
+
case 1:
|
|
3688
|
+
var value = /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (reader.readEnum());
|
|
3689
|
+
msg.setAggregation(value);
|
|
3690
|
+
break;
|
|
3691
|
+
case 2:
|
|
3692
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
3693
|
+
msg.setQuantile(value);
|
|
3694
|
+
break;
|
|
3695
|
+
default:
|
|
3696
|
+
reader.skipField();
|
|
3697
|
+
break;
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
return msg;
|
|
3701
|
+
};
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
/**
|
|
3705
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3706
|
+
* @return {!Uint8Array}
|
|
3707
|
+
*/
|
|
3708
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.serializeBinary = function() {
|
|
3709
|
+
var writer = new jspb.BinaryWriter();
|
|
3710
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter(this, writer);
|
|
3711
|
+
return writer.getResultBuffer();
|
|
3712
|
+
};
|
|
3713
|
+
|
|
3714
|
+
|
|
3715
|
+
/**
|
|
3716
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3717
|
+
* format), writing to the given BinaryWriter.
|
|
3718
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} message
|
|
3719
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3720
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3721
|
+
*/
|
|
3722
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.serializeBinaryToWriter = function(message, writer) {
|
|
3723
|
+
var f = undefined;
|
|
3724
|
+
f = message.getAggregation();
|
|
3725
|
+
if (f !== 0.0) {
|
|
3726
|
+
writer.writeEnum(
|
|
3727
|
+
1,
|
|
3728
|
+
f
|
|
3729
|
+
);
|
|
3730
|
+
}
|
|
3731
|
+
f = message.getQuantile();
|
|
3732
|
+
if (f !== 0.0) {
|
|
3733
|
+
writer.writeDouble(
|
|
3734
|
+
2,
|
|
3735
|
+
f
|
|
3736
|
+
);
|
|
3737
|
+
}
|
|
3738
|
+
};
|
|
3739
|
+
|
|
3740
|
+
|
|
3741
|
+
/**
|
|
3742
|
+
* optional ExponentialHistogramAggregation aggregation = 1;
|
|
3743
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramAggregation}
|
|
3744
|
+
*/
|
|
3745
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getAggregation = function() {
|
|
3746
|
+
return /** @type {!proto.gateway.web.v1.ExponentialHistogramAggregation} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3747
|
+
};
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
/**
|
|
3751
|
+
* @param {!proto.gateway.web.v1.ExponentialHistogramAggregation} value
|
|
3752
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
|
|
3753
|
+
*/
|
|
3754
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setAggregation = function(value) {
|
|
3755
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
3756
|
+
};
|
|
3757
|
+
|
|
3758
|
+
|
|
3759
|
+
/**
|
|
3760
|
+
* optional double quantile = 2;
|
|
3761
|
+
* @return {number}
|
|
3762
|
+
*/
|
|
3763
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.getQuantile = function() {
|
|
3764
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
3765
|
+
};
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
/**
|
|
3769
|
+
* @param {number} value
|
|
3770
|
+
* @return {!proto.gateway.web.v1.ExponentialHistogramQuerySpec} returns this
|
|
3771
|
+
*/
|
|
3772
|
+
proto.gateway.web.v1.ExponentialHistogramQuerySpec.prototype.setQuantile = function(value) {
|
|
3773
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
3774
|
+
};
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
|
|
3543
3778
|
/**
|
|
3544
3779
|
* List of repeated fields within this message type.
|
|
3545
3780
|
* @private {!Array<number>}
|
|
@@ -9740,7 +9975,8 @@ proto.gateway.web.v1.MetricKind = {
|
|
|
9740
9975
|
METRIC_KIND_UNSPECIFIED: 0,
|
|
9741
9976
|
METRIC_KIND_GAUGE: 1,
|
|
9742
9977
|
METRIC_KIND_SUM: 2,
|
|
9743
|
-
METRIC_KIND_HISTOGRAM: 3
|
|
9978
|
+
METRIC_KIND_HISTOGRAM: 3,
|
|
9979
|
+
METRIC_KIND_EXPONENTIAL_HISTOGRAM: 4
|
|
9744
9980
|
};
|
|
9745
9981
|
|
|
9746
9982
|
/**
|
|
@@ -9779,6 +10015,18 @@ proto.gateway.web.v1.HistogramAggregation = {
|
|
|
9779
10015
|
HISTOGRAM_AGGREGATION_COUNT: 5
|
|
9780
10016
|
};
|
|
9781
10017
|
|
|
10018
|
+
/**
|
|
10019
|
+
* @enum {number}
|
|
10020
|
+
*/
|
|
10021
|
+
proto.gateway.web.v1.ExponentialHistogramAggregation = {
|
|
10022
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_UNSPECIFIED: 0,
|
|
10023
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_QUANTILE: 1,
|
|
10024
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_AVG: 2,
|
|
10025
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_MIN: 3,
|
|
10026
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_MAX: 4,
|
|
10027
|
+
EXPONENTIAL_HISTOGRAM_AGGREGATION_COUNT: 5
|
|
10028
|
+
};
|
|
10029
|
+
|
|
9782
10030
|
/**
|
|
9783
10031
|
* @enum {number}
|
|
9784
10032
|
*/
|