get Hosts Status

@Query(value = "SELECT new com.tecknobit.brownie.services.hosts.dtos.CurrentHostStatus(" + "h." + IDENTIFIER_KEY + ", " + "h." + STATUS_KEY + ") FROM BrownieHost h" + _WHERE_ + "h." + IDENTIFIER_KEY + " IN (:" + HOSTS_KEY + ")" )
abstract fun getHostsStatus(@Param(value = "hosts") currentHosts: List<String>): List<CurrentHostStatus>

Query used to retrieve the current status of the specified hosts

Return

the list of the current hosts status as List of CurrentHostStatus

Parameters

currentHosts

The identifiers of the hosts to fetch their current status