Class WebSocketSystemHealthCheckService

java.lang.Object
org.qubership.atp.environments.service.websocket.WebSocketSystemHealthCheckService

@Service public class WebSocketSystemHealthCheckService extends Object
  • Constructor Details

    • WebSocketSystemHealthCheckService

      public WebSocketSystemHealthCheckService(SystemService systemService, HealthcheckFeignClient hcFeignClient)
      Creates service which calls ATP Healthcheck and receives server statuses.
      Parameters:
      systemService - service for saving results of checking.
      hcFeignClient - API to go to ATP Healthcheck.
  • Method Details

    • checkHealth

      public SystemDto checkHealth(UUID projectId, UUID environmentId, UUID systemId) throws IOException
      Checks health of connections in provided system at ATP Healthcheck and saves to system.
      Parameters:
      projectId - projectId
      environmentId - environmentId
      systemId - systemId
      Returns:
      DTO of saved system.
      Throws:
      IOException - if JSON error during ATP Healthcheck response parsing occur.