fix(platform): avoid fake redis online keys

This commit is contained in:
lingniu
2026-07-03 22:41:25 +08:00
parent 91c2168cb0
commit 2c24d4734c
5 changed files with 6 additions and 7 deletions

View File

@@ -125,7 +125,7 @@ export interface QualityIssueRow {
export interface OpsHealth {
linkHealth: LinkHealth[];
kafkaLag: number | null;
redisOnlineKeys: number;
redisOnlineKeys: number | null;
tdengineWritable: boolean;
mysqlWritable: boolean;
}

View File

@@ -41,7 +41,7 @@ export function Quality() {
<PageHeader title="数据质量" description="断链、VIN 缺失、字段缺失和链路健康的排查入口" />
<Row gutter={16}>
<Col span={8}><Card bordered title="Kafka Lag">{formatLag(health?.kafkaLag)}</Card></Col>
<Col span={8}><Card bordered title="Redis 在线 Key">{health?.redisOnlineKeys ?? 0}</Card></Col>
<Col span={8}><Card bordered title="Redis 在线 Key">{formatLag(health?.redisOnlineKeys)}</Card></Col>
<Col span={8}><Card bordered title="存储写入">{health?.tdengineWritable && health.mysqlWritable ? '正常' : '异常'}</Card></Col>
</Row>
<Card bordered title="质量问题" style={{ marginTop: 16 }}>