diff --git a/equipment-gateway-models/src/main/java/com/telecominfraproject/wlan/equipmentgateway/models/CEGWCommandType.java b/equipment-gateway-models/src/main/java/com/telecominfraproject/wlan/equipmentgateway/models/CEGWCommandType.java index d8cd0585..ec596123 100644 --- a/equipment-gateway-models/src/main/java/com/telecominfraproject/wlan/equipmentgateway/models/CEGWCommandType.java +++ b/equipment-gateway-models/src/main/java/com/telecominfraproject/wlan/equipmentgateway/models/CEGWCommandType.java @@ -59,11 +59,6 @@ public enum CEGWCommandType { WdsRequest, ClientBlocklistChangeNotification, - - /** - * Most recent timestamp for receipt of stats data from this AP. - */ - MostRecentStatsTimestamp, UNSUPPORTED; diff --git a/portal-services/src/main/java/com/telecominfraproject/wlan/portal/controller/equipmentgateway/EquipmentGatewayPortalController.java b/portal-services/src/main/java/com/telecominfraproject/wlan/portal/controller/equipmentgateway/EquipmentGatewayPortalController.java index 108ca584..aeadcbe9 100644 --- a/portal-services/src/main/java/com/telecominfraproject/wlan/portal/controller/equipmentgateway/EquipmentGatewayPortalController.java +++ b/portal-services/src/main/java/com/telecominfraproject/wlan/portal/controller/equipmentgateway/EquipmentGatewayPortalController.java @@ -16,12 +16,9 @@ import com.telecominfraproject.wlan.equipment.models.Equipment; import com.telecominfraproject.wlan.equipment.models.RadioChannelChangeSettings; import com.telecominfraproject.wlan.equipmentgateway.models.CEGWBlinkRequest; import com.telecominfraproject.wlan.equipmentgateway.models.CEGWCommandResultCode; -import com.telecominfraproject.wlan.equipmentgateway.models.CEGWCommandType; import com.telecominfraproject.wlan.equipmentgateway.models.CEGWFirmwareDownloadRequest; -import com.telecominfraproject.wlan.equipmentgateway.models.CEGWMostRecentStatsTimestamp; import com.telecominfraproject.wlan.equipmentgateway.models.CEGWNewChannelRequest; import com.telecominfraproject.wlan.equipmentgateway.models.CEGWRebootRequest; -import com.telecominfraproject.wlan.equipmentgateway.models.CEGatewayCommand; import com.telecominfraproject.wlan.equipmentgateway.models.EquipmentCommandResponse; import com.telecominfraproject.wlan.equipmentgateway.service.EquipmentGatewayServiceInterface; import com.telecominfraproject.wlan.firmware.FirmwareServiceInterface; @@ -163,17 +160,4 @@ public class EquipmentGatewayPortalController { } } - @RequestMapping(value = "/equipmentGateway/lastReceivedStatsTimestamp", method = RequestMethod.GET) - public GenericResponse lastReceivedStatsTimestamp(@RequestParam long equipmentId) { - Equipment equipment = equipmentServiceInterface.get(equipmentId); - String apId = equipment.getInventoryId(); - CEGWMostRecentStatsTimestamp mostRecentStatsTimestamp = new CEGWMostRecentStatsTimestamp(CEGWCommandType.MostRecentStatsTimestamp, apId, equipmentId); - EquipmentCommandResponse response = equipmentGatewayServiceInterface.sendCommand(mostRecentStatsTimestamp); - LOG.debug("lastReceivedStatsTimestamp response {}", response); - if (response.getResultCode() == CEGWCommandResultCode.Success) { - return new GenericResponse(true, response.getResultDetail()); - } else { - return new GenericResponse(false, response.getResultCode() + " - Failed to get last received stats timestamp for " + apId); - } - } } diff --git a/portal-services/src/main/resources/portal-services-openapi.yaml b/portal-services/src/main/resources/portal-services-openapi.yaml index 9021dde3..867f9ea9 100644 --- a/portal-services/src/main/resources/portal-services-openapi.yaml +++ b/portal-services/src/main/resources/portal-services-openapi.yaml @@ -14268,31 +14268,6 @@ paths: $ref: '#/components/schemas/GenericResponse' 500: $ref: '#/components/responses/GenericApiError' - - /portal/equipmentGateway/lastReceivedStatsTimestamp: - get: - tags: - - Equipment Gateway - summary: Request to get the last received (most recent) stats received timestamp for the APs session with the gateway controller - operationId: lastReceivedStatsTimestamp - parameters: - - name: equipmentId - in: query - description: Equipment id for AP for which last received stats timestamp is being requested. - required: true - schema: - type: integer - format: int64 - responses: - 200: - description: successful operation - content: - application/json: - schema: - $ref: '#/components/schemas/GenericResponse' - 500: - $ref: '#/components/responses/GenericApiError' - /portal/equipmentGateway/requestChannelChange: post: