feat(platform): expose structured capacity metrics
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user