节点上传指标数据时只上传变更的部分

This commit is contained in:
刘祥超
2024-04-03 08:15:32 +08:00
parent 5478e6a956
commit c6f9126ae2
3 changed files with 57 additions and 47 deletions

View File

@@ -19,13 +19,14 @@ service MetricStatService {
// 上传统计数据
message UploadMetricStatsRequest {
int64 serverId = 1;
string time = 2;
int64 count = 3;
float total = 4;
int32 version = 5;
int64 itemId = 6;
repeated UploadingMetricStat metricStats = 7;
int64 serverId = 1; // 网站ID
string time = 2; // 时间
int64 count = 3; // 数量
float total = 4; // 总数
int32 version = 5; // 版本号
int64 itemId = 6; // 指标ID
repeated UploadingMetricStat metricStats = 7; // 指标统计数据
repeated string keepKeys = 8; // 需要保留的指标值
}
// 计算指标数据数量