Files
EdgeCommon/pkg/rpc/protos/service_http_access_log.proto
2020-11-02 21:15:48 +08:00

56 lines
1.3 KiB
Protocol Buffer

syntax = "proto3";
option go_package = "./pb";
package pb;
import "model_http_access_log.proto";
// 访问日志相关服务
service HTTPAccessLogService {
// 创建访问日志
rpc createHTTPAccessLogs (CreateHTTPAccessLogsRequest) returns (CreateHTTPAccessLogsResponse);
// 列出单页访问日志
rpc listHTTPAccessLogs (ListHTTPAccessLogsRequest) returns (ListHTTPAccessLogsResponse);
// 查找单个日志
rpc findHTTPAccessLog (FindHTTPAccessLogRequest) returns (FindHTTPAccessLogResponse);
}
// 创建访问日志
message CreateHTTPAccessLogsRequest {
repeated HTTPAccessLog accessLogs = 1;
}
message CreateHTTPAccessLogsResponse {
}
// 列出往前的单页访问日志
message ListHTTPAccessLogsRequest {
string requestId = 1;
int64 serverId = 2;
int64 size = 3;
string day = 4;
bool reverse = 5; // 是否反向查找
bool hasError = 6;
int64 firewallPolicyId = 7; // WAF策略ID
int64 firewallRuleGroupId = 8; // WAF分组ID
int64 firewallRuleSetId = 9; // WAF规则集ID
}
message ListHTTPAccessLogsResponse {
repeated HTTPAccessLog accessLogs = 1;
string requestId = 2;
bool hasMore = 3;
}
// 查找单个日志
message FindHTTPAccessLogRequest {
string requestId = 1;
}
message FindHTTPAccessLogResponse {
HTTPAccessLog accessLog = 1;
}