in ApPerformance change cpuUtilized type to int[], in ClientMetrics change mcs and rates types to int[] - they were originally defined as byte[], but that causes them to be serialized as base64-encoded strings, which is annoying

This commit is contained in:
Dmitry Toptygin
2020-09-15 15:04:01 -04:00
parent 2ea8f4a124
commit 9899286bc0

View File

@@ -1253,7 +1253,7 @@ public class OpensyncExternalIntegrationMqttMessageProcessor {
if (deviceReport.hasCpuUtil() && deviceReport.getCpuUtil().hasCpuUtil()) {
Integer cpuUtilization = deviceReport.getCpuUtil().getCpuUtil();
apPerformance.setCpuUtilized(new byte[] { cpuUtilization.byteValue() });
apPerformance.setCpuUtilized(new int[] { cpuUtilization.intValue() });
}
apPerformance.setEthLinkState(EthernetLinkState.UP1000_FULL_DUPLEX);
@@ -1735,8 +1735,8 @@ public class OpensyncExternalIntegrationMqttMessageProcessor {
}
if (cl.getStats().hasTxRate() && cl.getStats().hasRxRate()) {
cMetrics.setRates(new byte[] { Double.valueOf(cl.getStats().getTxRate() / 1000).byteValue(),
Double.valueOf(cl.getStats().getRxRate() / 1000).byteValue() });
cMetrics.setRates(new int[] { Double.valueOf(cl.getStats().getTxRate() / 1000).intValue(),
Double.valueOf(cl.getStats().getRxRate() / 1000).intValue() });
}
if (cl.getStats().hasTxErrors()) {