18 lines
471 B
Python
18 lines
471 B
Python
import streamlit as st
|
|
import pandas as pd
|
|
from streamlit_server.utils.helpers import format_timestamp
|
|
|
|
# def render():
|
|
st.header("Worker & Host Management")
|
|
|
|
# Fetch Worker Agents & Workload Hosts
|
|
workload_hosts = st.session_state.client.get_workload_hosts()
|
|
|
|
# Display Workload Hosts
|
|
st.subheader("Workload Hosts")
|
|
if workload_hosts:
|
|
workload_hosts_df = pd.DataFrame(workload_hosts)
|
|
st.dataframe(workload_hosts_df)
|
|
else:
|
|
st.info("No workload hosts found.")
|