@nsshunt/stsobservability 1.0.39 → 1.0.41
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.
|
@@ -419,10 +419,10 @@ class InstrumentVelocity extends InstrumentBase {
|
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
ProcessTelemetry(telemetry) {
|
|
422
|
-
if (telemetry.Inc) {
|
|
422
|
+
if (telemetry.Inc !== void 0) {
|
|
423
423
|
this.Inc(telemetry.Inc);
|
|
424
424
|
}
|
|
425
|
-
if (telemetry.val) {
|
|
425
|
+
if (telemetry.val !== void 0) {
|
|
426
426
|
this.val = telemetry.val;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
@@ -817,7 +817,7 @@ class InstrumentHistogram extends InstrumentBase {
|
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
819
|
ProcessTelemetry(telemetry) {
|
|
820
|
-
if (telemetry.val) {
|
|
820
|
+
if (telemetry.val !== void 0) {
|
|
821
821
|
this.val = telemetry.val;
|
|
822
822
|
}
|
|
823
823
|
}
|
|
@@ -1029,16 +1029,16 @@ class InstrumentLog extends InstrumentBase {
|
|
|
1029
1029
|
__privateSet(this, _readPos, 0);
|
|
1030
1030
|
}
|
|
1031
1031
|
ProcessTelemetry(telemetry) {
|
|
1032
|
-
if (telemetry.val) {
|
|
1032
|
+
if (telemetry.val !== void 0) {
|
|
1033
1033
|
this.val = telemetry.val;
|
|
1034
1034
|
}
|
|
1035
|
-
if (telemetry.Append) {
|
|
1035
|
+
if (telemetry.Append !== void 0) {
|
|
1036
1036
|
this.Append(telemetry.Append);
|
|
1037
1037
|
}
|
|
1038
|
-
if (telemetry.LogMessage) {
|
|
1038
|
+
if (telemetry.LogMessage !== void 0) {
|
|
1039
1039
|
this.LogMessage(telemetry.LogMessage);
|
|
1040
1040
|
}
|
|
1041
|
-
if (telemetry.ResetLog) {
|
|
1041
|
+
if (telemetry.ResetLog !== void 0 && telemetry.ResetLog === true) {
|
|
1042
1042
|
this.ResetLog();
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
@@ -1164,16 +1164,16 @@ class InstrumentTimerGauge extends InstrumentBase {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
*/
|
|
1166
1166
|
ProcessTelemetry(telemetry) {
|
|
1167
|
-
if (telemetry.val) {
|
|
1167
|
+
if (telemetry.val !== void 0) {
|
|
1168
1168
|
this.val = telemetry.val;
|
|
1169
1169
|
}
|
|
1170
|
-
if (telemetry.Pause) {
|
|
1170
|
+
if (telemetry.Pause !== void 0 && telemetry.Pause === true) {
|
|
1171
1171
|
this.Pause();
|
|
1172
1172
|
}
|
|
1173
|
-
if (telemetry.Resume) {
|
|
1173
|
+
if (telemetry.Resume !== void 0 && telemetry.Resume === true) {
|
|
1174
1174
|
this.Resume();
|
|
1175
1175
|
}
|
|
1176
|
-
if (telemetry.Reset) {
|
|
1176
|
+
if (telemetry.Reset !== void 0 && telemetry.Reset === true) {
|
|
1177
1177
|
this.Reset();
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
@@ -2044,13 +2044,13 @@ class InstrumentGauge extends InstrumentBase {
|
|
|
2044
2044
|
__privateMethod(this, _InstrumentGauge_instances, SetVal_fn5).call(this, __privateGet(this, _val3) - decVal);
|
|
2045
2045
|
}
|
|
2046
2046
|
ProcessTelemetry(telemetry) {
|
|
2047
|
-
if (telemetry.Inc) {
|
|
2047
|
+
if (telemetry.Inc !== void 0) {
|
|
2048
2048
|
this.Inc(telemetry.Inc);
|
|
2049
2049
|
}
|
|
2050
|
-
if (telemetry.Dec) {
|
|
2050
|
+
if (telemetry.Dec !== void 0) {
|
|
2051
2051
|
this.Dec(telemetry.Dec);
|
|
2052
2052
|
}
|
|
2053
|
-
if (telemetry.val) {
|
|
2053
|
+
if (telemetry.val !== void 0) {
|
|
2054
2054
|
this.val = telemetry.val;
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
@@ -2198,7 +2198,7 @@ class InstrumentObject extends InstrumentBase {
|
|
|
2198
2198
|
return this;
|
|
2199
2199
|
}
|
|
2200
2200
|
ProcessTelemetry(telemetry) {
|
|
2201
|
-
if (telemetry.val) {
|
|
2201
|
+
if (telemetry.val !== void 0) {
|
|
2202
2202
|
this.val = telemetry.val;
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
@@ -4882,6 +4882,7 @@ class PublishTransportRESTServer extends STSOptionsBase {
|
|
|
4882
4882
|
try {
|
|
4883
4883
|
if (this.options.showPublishPayload) {
|
|
4884
4884
|
console.log(chalk$1.grey(`PublishTransportRESTServer::Publish() url: [${this.options.url}]`));
|
|
4885
|
+
console.log(payload);
|
|
4885
4886
|
}
|
|
4886
4887
|
const encodedData = encode(payload, { ignoreUndefined: true });
|
|
4887
4888
|
const headers = { "Content-Type": "application/octet-stream" };
|