mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-05 03:05:48 +08:00
节点日志增加服务ID、是否修复等字段
This commit is contained in:
@@ -4,11 +4,14 @@ option go_package = "./pb";
|
||||
package pb;
|
||||
|
||||
message NodeLog {
|
||||
string role = 1;
|
||||
string tag = 2;
|
||||
string description = 3;
|
||||
string level = 4;
|
||||
int64 nodeId = 5;
|
||||
int64 createdAt = 6;
|
||||
int32 count = 7;
|
||||
int64 id = 1;
|
||||
string role = 2;
|
||||
string tag = 3;
|
||||
string description = 4;
|
||||
string level = 5;
|
||||
int64 nodeId = 6;
|
||||
int64 createdAt = 7;
|
||||
int32 count = 8;
|
||||
int64 serverId = 9;
|
||||
bool isFixed = 10;
|
||||
}
|
||||
@@ -16,6 +16,9 @@ service NodeLogService {
|
||||
|
||||
// 列出单页日志
|
||||
rpc listNodeLogs (ListNodeLogsRequest) returns (ListNodeLogsResponse);
|
||||
|
||||
// 设置日志为已修复
|
||||
rpc fixNodeLog (FixNodeLogRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 创建日志
|
||||
@@ -35,6 +38,7 @@ message CountNodeLogsRequest {
|
||||
string dayTo = 4;
|
||||
string keyword = 5;
|
||||
string level = 6;
|
||||
int64 serverId = 7;
|
||||
}
|
||||
|
||||
// 列出单页日志
|
||||
@@ -48,8 +52,16 @@ message ListNodeLogsRequest {
|
||||
string dayTo = 6;
|
||||
string keyword = 7;
|
||||
string level = 8;
|
||||
int64 serverId = 9;
|
||||
int32 fixedState = 10;
|
||||
bool allServers = 11; // 是否获取所有服务相关的日志
|
||||
}
|
||||
|
||||
message ListNodeLogsResponse {
|
||||
repeated NodeLog nodeLogs = 1;
|
||||
}
|
||||
|
||||
// 设置日志为已修复
|
||||
message FixNodeLogRequest {
|
||||
int64 nodeLogId = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user