mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			625 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			625 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
option go_package = "./pb";
 | 
						|
 | 
						|
package pb;
 | 
						|
 | 
						|
import "models/model_node_cluster.proto";
 | 
						|
import "models/model_node.proto";
 | 
						|
import "models/model_server.proto";
 | 
						|
 | 
						|
// 统计数据
 | 
						|
message MetricStat {
 | 
						|
	int64 id = 1;
 | 
						|
	string hash = 2;
 | 
						|
	int64 serverId = 3;
 | 
						|
	int64 itemId = 4;
 | 
						|
	repeated string keys = 5;
 | 
						|
	float value = 6;
 | 
						|
	string time = 7;
 | 
						|
	int32 version = 8;
 | 
						|
 | 
						|
	NodeCluster nodeCluster = 30;
 | 
						|
	Node node = 31;
 | 
						|
	Server server = 32;
 | 
						|
 | 
						|
	int64 sumCount = 40;
 | 
						|
	float sumTotal = 41;
 | 
						|
}
 | 
						|
 | 
						|
// 需要上传的统计数据
 | 
						|
message UploadingMetricStat {
 | 
						|
	int64 id = 1;
 | 
						|
	string hash = 2;
 | 
						|
	repeated string keys = 3;
 | 
						|
	float value = 4;
 | 
						|
} |