-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathapp.py
More file actions
29 lines (20 loc) · 727 Bytes
/
Copy pathapp.py
File metadata and controls
29 lines (20 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# What it does:
# Shows live metrics, anomaly alerts, RCA, recovery logs.
# PPT Module:
# Real-time System View
import streamlit as st
import requests
st.title("Autonomous Recovery Dashboard")
telemetry = requests.get("http://localhost:8000/telemetry/collect").json()
anomaly = requests.get("http://localhost:8000/anomaly/detect").json()
rca = requests.get("http://localhost:8000/rca/analyze").json()
st.subheader("Live Metrics")
st.json(telemetry)
st.subheader("Anomaly Detection")
st.json(anomaly)
st.subheader("Root Cause Analysis")
st.json(rca)
if st.button("Trigger Recovery"):
recovery = requests.post("http://localhost:8000/recovery/execute").json()
st.subheader("Recovery Result")
st.json(recovery)