feat(proto): add SubscribeClusterPods streaming RPC

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-03-04 12:55:21 +01:00
parent 9d88898722
commit c49608815a

View File

@@ -52,6 +52,9 @@ service MonitoringService {
// Epoch history for a specific session (ring buffer, max 50 epochs)
rpc GetEpochHistory(GetEpochHistoryRequest)
returns (GetEpochHistoryResponse);
// Kubernetes pod status — streams every N seconds
rpc SubscribeClusterPods(SubscribeClusterPodsRequest) returns (stream ClusterPodsResponse);
}
// ============================================================================
@@ -424,6 +427,31 @@ message GetEpochHistoryResponse {
repeated EpochFinancialSnapshot epochs = 3;
}
// ============================================================================
// Cluster Pod Messages
// ============================================================================
message SubscribeClusterPodsRequest {
uint32 interval_seconds = 1; // 0 = server default (5s)
}
message ClusterPodsResponse {
repeated PodInfo pods = 1;
int64 timestamp = 2;
}
message PodInfo {
string name = 1;
string service = 2; // app.kubernetes.io/name label
string namespace = 3;
string status = 4; // Running/Pending/CrashLoopBackOff/Completed/etc
int32 restarts = 5;
string age = 6; // human-readable: "2d5h", "3m"
string node = 7;
bool ready = 8;
string version = 9; // from FOXHUNT_BUILD_VERSION env or empty
}
// ============================================================================
// Enums
// ============================================================================