AzureBillingDashboardWeb.VirtualMachineLive.Index (azure_billing_dashboard v0.2.0)
This module contains the server code for the Index page of the Live Dashboard.
Handle_Events are connected to AzureAPI.VirtualMachineController (VMC)
Link to this section Summary
Functions
Handles events for when buttons are clicked.
Handles messages sent to the server
Callback implementation for Phoenix.LiveView.render/1.
Link to this section Functions
Link to this function
handle_event(binary, arg2, socket)
Handles events for when buttons are clicked.
Possible events:
1. "Start" - Starts a virtual machine using VMC
2. "Stop" - Stops a virtual machine using VMC
3. "Batch Start" - Starts multiple virtual machines using VMC
4. "Batch Stop" - Stops multiple virtual machines using VMC
5. "Refresh" - Determines availability using VMC
Link to this function
handle_info(atom, socket)
Handles messages sent to the server
Possible messages:
1. :update_live_view - Keeps socket assigns in sync with the database
Link to this function
render(arg)
Callback implementation for Phoenix.LiveView.render/1.