Status
<% {status, label} = agent_status(@agent_token) %>Device
{length(@polling_targets)}
{@direct_assignments} direct
Last Seen
<.timestamp datetime={@agent_token.last_seen_at} timezone={@timezone} />
<%= if @agent_token.last_seen_at do %><.timestamp datetime={@agent_token.last_seen_at} timezone={@timezone} />
<% end %> <%= if @agent_token.last_ip do %>{@agent_token.last_ip}
<% end %>Uptime
<%= if @agent_token.metadata["uptime_seconds"] do %>{format_uptime(@agent_token.metadata["uptime_seconds"])}
<% else %>Unknown
<% end %>Device that this agent is responsible for polling
This agent is not currently polling any device.
{device.name}
<% {source, source_label} = assignment_source(device, @agent_token.id) %> {source_label}