mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-10 01:10:27 +08:00
增加API方法调用耗时统计
This commit is contained in:
30
pkg/rpc/protos/api_method_stat_service.proto
Normal file
30
pkg/rpc/protos/api_method_stat_service.proto
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user