feat(platform): expose structured capacity metrics

This commit is contained in:
lingniu
2026-07-04 19:10:04 +08:00
parent 68b260c704
commit cbe7882d51
10 changed files with 297 additions and 42 deletions

View File

@@ -359,14 +359,28 @@ type QualityPriorityIssue struct {
}
type OpsHealth struct {
LinkHealth []LinkHealth `json:"linkHealth"`
KafkaLag *int `json:"kafkaLag"`
ActiveConnections *int `json:"activeConnections"`
CapacityFindings []string `json:"capacityFindings"`
RedisOnlineKeys *int `json:"redisOnlineKeys"`
TDengineWritable bool `json:"tdengineWritable"`
MySQLWritable bool `json:"mysqlWritable"`
Runtime RuntimeInfo `json:"runtime"`
LinkHealth []LinkHealth `json:"linkHealth"`
KafkaLag *int `json:"kafkaLag"`
ActiveConnections *int `json:"activeConnections"`
CapacityMetrics CapacityMetrics `json:"capacityMetrics"`
CapacityFindings []string `json:"capacityFindings"`
RedisOnlineKeys *int `json:"redisOnlineKeys"`
TDengineWritable bool `json:"tdengineWritable"`
MySQLWritable bool `json:"mysqlWritable"`
Runtime RuntimeInfo `json:"runtime"`
}
type CapacityMetrics struct {
ActiveConnections int `json:"activeConnections"`
KafkaLag int `json:"kafkaLag"`
BridgeConsumerPending int `json:"bridgeConsumerPending"`
BridgeAckPending int `json:"bridgeAckPending"`
BridgeBatchPendingMessages int `json:"bridgeBatchPendingMessages"`
FastWriterConsumerPending int `json:"fastWriterConsumerPending"`
FastWriterAckPending int `json:"fastWriterAckPending"`
FastWriterBatchPending int `json:"fastWriterBatchPending"`
HistoryBatchPending int `json:"historyBatchPending"`
HistoryRowsPending int `json:"historyRowsPending"`
}
type RuntimeInfo struct {