mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			762 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			762 B
		
	
	
	
		
			Protocol Buffer
		
	
	
	
	
	
syntax = "proto3";
 | 
						|
option go_package = "./pb";
 | 
						|
 | 
						|
package pb;
 | 
						|
 | 
						|
import "models/model_api_method_stat.proto";
 | 
						|
import "models/rpc_messages.proto";
 | 
						|
 | 
						|
// API方法统计服务
 | 
						|
service APIMethodStatService {
 | 
						|
	// 查找某天的统计
 | 
						|
	rpc findAPIMethodStatsWithDay(FindAPIMethodStatsWithDayRequest) returns (FindAPIMethodStatsWithDayResponse);
 | 
						|
 | 
						|
	// 检查是否有统计数据
 | 
						|
	rpc countAPIMethodStatsWithDay(CountAPIMethodStatsWithDayRequest) returns (RPCCountResponse);
 | 
						|
}
 | 
						|
 | 
						|
// 查找某天的统计
 | 
						|
message FindAPIMethodStatsWithDayRequest {
 | 
						|
	string day = 1; // YYYYMMDD
 | 
						|
}
 | 
						|
 | 
						|
message FindAPIMethodStatsWithDayResponse {
 | 
						|
	repeated APIMethodStat apiMethodStats = 1;
 | 
						|
}
 | 
						|
 | 
						|
// 检查是否有统计数据
 | 
						|
message CountAPIMethodStatsWithDayRequest {
 | 
						|
	string day = 1; // YYYYMMDD
 | 
						|
} |