mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 02:57:49 +00:00
WIFI-1958 Sometime OnChannel is not reported on Channel Metric
This commit is contained in:
@@ -6,7 +6,6 @@ import java.net.Inet6Address;
|
|||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@@ -81,8 +80,6 @@ import com.telecominfraproject.wlan.status.models.StatusDataType;
|
|||||||
import com.telecominfraproject.wlan.status.network.models.NetworkAdminStatusData;
|
import com.telecominfraproject.wlan.status.network.models.NetworkAdminStatusData;
|
||||||
import com.telecominfraproject.wlan.systemevent.models.SystemEvent;
|
import com.telecominfraproject.wlan.systemevent.models.SystemEvent;
|
||||||
|
|
||||||
import javassist.bytecode.ByteArray;
|
|
||||||
import sts.OpensyncStats;
|
|
||||||
import sts.OpensyncStats.AssocType;
|
import sts.OpensyncStats.AssocType;
|
||||||
import sts.OpensyncStats.Client;
|
import sts.OpensyncStats.Client;
|
||||||
import sts.OpensyncStats.ClientReport;
|
import sts.OpensyncStats.ClientReport;
|
||||||
@@ -1829,7 +1826,8 @@ public class MqttStatsPublisher {
|
|||||||
|
|
||||||
survey.getSurveyListList().stream().filter(t -> {
|
survey.getSurveyListList().stream().filter(t -> {
|
||||||
if (survey.getSurveyType().equals(SurveyType.ON_CHANNEL)) {
|
if (survey.getSurveyType().equals(SurveyType.ON_CHANNEL)) {
|
||||||
return t.hasDurationMs() && (t.getDurationMs() > 0) && t.hasChannel() && t.hasBusy() && t.hasBusyTx() && t.hasNoise();
|
return t.hasDurationMs() && (t.getDurationMs() > 0) && t.hasChannel() &&
|
||||||
|
(t.hasBusy() || t.hasBusyTx() || t.hasBusySelf() || t.hasNoise());
|
||||||
} else {
|
} else {
|
||||||
return t.hasDurationMs() && t.hasChannel();
|
return t.hasDurationMs() && t.hasChannel();
|
||||||
}
|
}
|
||||||
@@ -1855,10 +1853,12 @@ public class MqttStatsPublisher {
|
|||||||
channelInfoReports.setChannelInformationReportsPerRadio(channelInfoMap);
|
channelInfoReports.setChannelInformationReportsPerRadio(channelInfoMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
channelInfoReports.setChannelInformationReportsPerRadio(channelInfoMap);
|
if (!channelInfoMap.isEmpty()) {
|
||||||
smr.setDetails(channelInfoReports);
|
channelInfoReports.setChannelInformationReportsPerRadio(channelInfoMap);
|
||||||
smr.setCreatedTimestamp(survey.getTimestampMs());
|
smr.setDetails(channelInfoReports);
|
||||||
metricRecordList.add(smr);
|
smr.setCreatedTimestamp(survey.getTimestampMs());
|
||||||
|
metricRecordList.add(smr);
|
||||||
|
}
|
||||||
|
|
||||||
LOG.debug("ChannelInfoReports {}", channelInfoReports);
|
LOG.debug("ChannelInfoReports {}", channelInfoReports);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user