VM <%= @location %>#<%= Map.get(@vm, :ID) %> - <%= Map.get(@vm, :NAME) %>

This VM is located in the <%= @location %> location, its state is <%= render_state(@vm) %>. The OpenNebula dashboard can be accessed at <%= Map.get(ONE.get_location_config(@location), :public_address) %> .

History

<%= for entry <- @vm |> Map.get(:HISTORY_RECORDS) |> Map.get(:HISTORY) do %> <% end %>
Time Action Host
<%= DateTime.from_unix!(Map.get(entry, :STIME)) %> <%= VM.event_for(Map.get(entry, :ACTION)) %> <%= Map.get(entry, :HOSTNAME) %>