feat(proto): add SubscribeClusterPods streaming RPC
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user