Host
Screen
View
Model
The HostScreenViewModel class is the
support class used by the com.tecknobit.brownie.ui.screens.host.presenter.HostScreen
screen
Author
N7ghtm4r3 - Tecknobit
See also
Properties
requestsScope
the CoroutineScope
used to make the requests to the backend
servicesQuery
the query used to filter the services
servicesState
the state used to handle the pagination
of the services
sessionFlowState
the state used to manage the session
lifecycle in the screen
statusFilters
the list of the statuses used to filter
the hosts result
Functions
Method used to apply the selected statuses and refresh the current servicesState list
Method to clear the current set filters
Method used to handle the status of the host such online or offline
Method used to handle the status of the service such running or stopped
Method used to reboot a host
Method used to reboot a service
Method used to retrieve the current host overview data
Method used to display an eventual occurred error
Method used to unregister a host from the session