35 lines
786 B
Python
35 lines
786 B
Python
import streamlit as st
|
|
import pandas as pd
|
|
from streamlit_server.utils.helpers import format_timestamp
|
|
|
|
# def render():
|
|
st.header("Dashboard")
|
|
|
|
workload_hosts = st.session_state.client.get_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.")
|
|
|
|
images = st.session_state.client.get_images()
|
|
|
|
st.subheader("Images")
|
|
if images:
|
|
images_df = pd.DataFrame(images)
|
|
st.dataframe(images_df)
|
|
else:
|
|
st.info("No workload hosts found.")
|
|
|
|
|
|
regions = st.session_state.client.get_regions()
|
|
|
|
st.subheader("regions")
|
|
if regions:
|
|
regions_df = pd.DataFrame(regions)
|
|
st.dataframe(regions_df)
|
|
else:
|
|
st.info("No workload hosts found.")
|