mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +08:00 
			
		
		
		
	增加多个服务带宽、流量统计接口
This commit is contained in:
		
							
								
								
									
										7418
									
								
								build/rpc.json
									
									
									
									
									
								
							
							
						
						
									
										7418
									
								
								build/rpc.json
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -44,6 +44,7 @@ type Server struct {
 | 
			
		||||
	// 配置相关
 | 
			
		||||
	Config                  []byte                    `protobuf:"bytes,17,opt,name=config,proto3" json:"config,omitempty"`
 | 
			
		||||
	ServerNamesJSON         []byte                    `protobuf:"bytes,8,opt,name=serverNamesJSON,proto3" json:"serverNamesJSON,omitempty"`
 | 
			
		||||
	FirstServerName         string                    `protobuf:"bytes,33,opt,name=firstServerName,proto3" json:"firstServerName,omitempty"`
 | 
			
		||||
	CountServerNames        int32                     `protobuf:"varint,28,opt,name=countServerNames,proto3" json:"countServerNames,omitempty"`
 | 
			
		||||
	IsAuditing              bool                      `protobuf:"varint,20,opt,name=isAuditing,proto3" json:"isAuditing,omitempty"`
 | 
			
		||||
	AuditingAt              int64                     `protobuf:"varint,25,opt,name=auditingAt,proto3" json:"auditingAt,omitempty"`
 | 
			
		||||
@@ -62,8 +63,6 @@ type Server struct {
 | 
			
		||||
	NodeCluster             *NodeCluster              `protobuf:"bytes,30,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"`
 | 
			
		||||
	ServerGroups            []*ServerGroup            `protobuf:"bytes,31,rep,name=serverGroups,proto3" json:"serverGroups,omitempty"`
 | 
			
		||||
	User                    *User                     `protobuf:"bytes,32,opt,name=user,proto3" json:"user,omitempty"`
 | 
			
		||||
	// Deprecated: Do not use.
 | 
			
		||||
	LatestServerDailyStat *ServerDailyStat `protobuf:"bytes,33,opt,name=latestServerDailyStat,proto3" json:"latestServerDailyStat,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Server) Reset() {
 | 
			
		||||
@@ -189,6 +188,13 @@ func (x *Server) GetServerNamesJSON() []byte {
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Server) GetFirstServerName() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.FirstServerName
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *Server) GetCountServerNames() int32 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.CountServerNames
 | 
			
		||||
@@ -315,14 +321,6 @@ func (x *Server) GetUser() *User {
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Do not use.
 | 
			
		||||
func (x *Server) GetLatestServerDailyStat() *ServerDailyStat {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.LatestServerDailyStat
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_models_model_server_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
var file_models_model_server_proto_rawDesc = []byte{
 | 
			
		||||
@@ -336,82 +334,77 @@ var file_models_model_server_proto_rawDesc = []byte{
 | 
			
		||||
	0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x6d, 0x6f, 0x64, 0x65,
 | 
			
		||||
	0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f,
 | 
			
		||||
	0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65,
 | 
			
		||||
	0x73, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x6d, 0x6f, 0x64, 0x65,
 | 
			
		||||
	0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f,
 | 
			
		||||
	0x64, 0x61, 0x69, 0x6c, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
 | 
			
		||||
	0x22, 0xf1, 0x08, 0x0a, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
 | 
			
		||||
	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69,
 | 
			
		||||
	0x73, 0x4f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12,
 | 
			
		||||
	0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74,
 | 
			
		||||
	0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
 | 
			
		||||
	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
 | 
			
		||||
	0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
 | 
			
		||||
	0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x63,
 | 
			
		||||
	0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52,
 | 
			
		||||
	0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x22, 0x0a,
 | 
			
		||||
	0x0c, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x0c, 0x52, 0x0c, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65,
 | 
			
		||||
	0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x07,
 | 
			
		||||
	0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12,
 | 
			
		||||
	0x18, 0x0a, 0x07, 0x64, 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09,
 | 
			
		||||
	0x52, 0x07, 0x64, 0x6e, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x70,
 | 
			
		||||
	0x70, 0x6f, 0x72, 0x74, 0x43, 0x4e, 0x41, 0x4d, 0x45, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x52,
 | 
			
		||||
	0x0c, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x1e, 0x0a,
 | 
			
		||||
	0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28,
 | 
			
		||||
	0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a,
 | 
			
		||||
	0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63,
 | 
			
		||||
	0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e,
 | 
			
		||||
	0x61, 0x6d, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f,
 | 
			
		||||
	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12,
 | 
			
		||||
	0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61,
 | 
			
		||||
	0x6d, 0x65, 0x73, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x63, 0x6f, 0x75, 0x6e, 0x74,
 | 
			
		||||
	0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x69,
 | 
			
		||||
	0x73, 0x41, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52,
 | 
			
		||||
	0x0a, 0x69, 0x73, 0x41, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x61,
 | 
			
		||||
	0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x52,
 | 
			
		||||
	0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x17, 0x61,
 | 
			
		||||
	0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d,
 | 
			
		||||
	0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x17, 0x61, 0x75,
 | 
			
		||||
	0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
 | 
			
		||||
	0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x44, 0x0a, 0x0e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e,
 | 
			
		||||
	0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
 | 
			
		||||
	0x70, 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x41, 0x75, 0x64,
 | 
			
		||||
	0x69, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0e, 0x61, 0x75, 0x64,
 | 
			
		||||
	0x69, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68,
 | 
			
		||||
	0x74, 0x74, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x68,
 | 
			
		||||
	0x74, 0x74, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x74, 0x74, 0x70, 0x73,
 | 
			
		||||
	0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x68, 0x74, 0x74, 0x70,
 | 
			
		||||
	0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x63, 0x70, 0x4a, 0x53, 0x4f, 0x4e,
 | 
			
		||||
	0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x63, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x12,
 | 
			
		||||
	0x18, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c,
 | 
			
		||||
	0x52, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x6e, 0x69,
 | 
			
		||||
	0x78, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x75, 0x6e, 0x69,
 | 
			
		||||
	0x78, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e,
 | 
			
		||||
	0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x12,
 | 
			
		||||
	0x14, 0x0a, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
 | 
			
		||||
	0x77, 0x65, 0x62, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65,
 | 
			
		||||
	0x50, 0x72, 0x6f, 0x78, 0x79, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0c, 0x52,
 | 
			
		||||
	0x10, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4a, 0x53, 0x4f,
 | 
			
		||||
	0x4e, 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x54, 0x69,
 | 
			
		||||
	0x6d, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69,
 | 
			
		||||
	0x64, 0x74, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x61, 0x6e, 0x64, 0x77,
 | 
			
		||||
	0x69, 0x64, 0x74, 0x68, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x03, 0x52,
 | 
			
		||||
	0x0e, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12,
 | 
			
		||||
	0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e,
 | 
			
		||||
	0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6c,
 | 
			
		||||
	0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74,
 | 
			
		||||
	0x65, 0x72, 0x12, 0x33, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75,
 | 
			
		||||
	0x70, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65,
 | 
			
		||||
	0x72, 0x76, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65,
 | 
			
		||||
	0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18,
 | 
			
		||||
	0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52,
 | 
			
		||||
	0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x15, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x53,
 | 
			
		||||
	0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x18, 0x21,
 | 
			
		||||
	0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x15, 0x6c,
 | 
			
		||||
	0x61, 0x74, 0x65, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x61, 0x69, 0x6c, 0x79,
 | 
			
		||||
	0x53, 0x74, 0x61, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
 | 
			
		||||
	0x6f, 0x74, 0x6f, 0x33,
 | 
			
		||||
	0x73, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x08, 0x0a, 0x06, 0x53,
 | 
			
		||||
	0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
 | 
			
		||||
	0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x12, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
 | 
			
		||||
	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a,
 | 
			
		||||
	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
 | 
			
		||||
	0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
 | 
			
		||||
	0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
 | 
			
		||||
	0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f,
 | 
			
		||||
	0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75,
 | 
			
		||||
	0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78, 0x63, 0x6c, 0x75,
 | 
			
		||||
	0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x65,
 | 
			
		||||
	0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63,
 | 
			
		||||
	0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
 | 
			
		||||
	0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x6e, 0x73,
 | 
			
		||||
	0x4e, 0x61, 0x6d, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x6e, 0x73, 0x4e,
 | 
			
		||||
	0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x4e,
 | 
			
		||||
	0x41, 0x4d, 0x45, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x75, 0x70, 0x70, 0x6f,
 | 
			
		||||
	0x72, 0x74, 0x43, 0x4e, 0x41, 0x4d, 0x45, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50,
 | 
			
		||||
	0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65,
 | 
			
		||||
	0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69,
 | 
			
		||||
	0x67, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
 | 
			
		||||
	0x28, 0x0a, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4a, 0x53,
 | 
			
		||||
	0x4f, 0x4e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x28, 0x0a, 0x0f, 0x66, 0x69, 0x72,
 | 
			
		||||
	0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x21, 0x20, 0x01,
 | 
			
		||||
	0x28, 0x09, 0x52, 0x0f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e,
 | 
			
		||||
	0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76,
 | 
			
		||||
	0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x63,
 | 
			
		||||
	0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12,
 | 
			
		||||
	0x1e, 0x0a, 0x0a, 0x69, 0x73, 0x41, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x14, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x41, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x12,
 | 
			
		||||
	0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x18, 0x19, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x12,
 | 
			
		||||
	0x38, 0x0a, 0x17, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x65,
 | 
			
		||||
	0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0c,
 | 
			
		||||
	0x52, 0x17, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x4e, 0x61, 0x6d, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x44, 0x0a, 0x0e, 0x61, 0x75, 0x64,
 | 
			
		||||
	0x69, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28,
 | 
			
		||||
	0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d,
 | 
			
		||||
	0x65, 0x41, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52,
 | 
			
		||||
	0x0e, 0x61, 0x75, 0x64, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12,
 | 
			
		||||
	0x1a, 0x0a, 0x08, 0x68, 0x74, 0x74, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x09, 0x20, 0x01, 0x28,
 | 
			
		||||
	0x0c, 0x52, 0x08, 0x68, 0x74, 0x74, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1c, 0x0a, 0x09, 0x68,
 | 
			
		||||
	0x74, 0x74, 0x70, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09,
 | 
			
		||||
	0x68, 0x74, 0x74, 0x70, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x63, 0x70,
 | 
			
		||||
	0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x63, 0x70, 0x4a,
 | 
			
		||||
	0x53, 0x4f, 0x4e, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0c,
 | 
			
		||||
	0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1a, 0x0a,
 | 
			
		||||
	0x08, 0x75, 0x6e, 0x69, 0x78, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0c, 0x52,
 | 
			
		||||
	0x08, 0x75, 0x6e, 0x69, 0x78, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x64, 0x70,
 | 
			
		||||
	0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x75, 0x64, 0x70, 0x4a,
 | 
			
		||||
	0x53, 0x4f, 0x4e, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x18, 0x0f, 0x20, 0x01,
 | 
			
		||||
	0x28, 0x03, 0x52, 0x05, 0x77, 0x65, 0x62, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x76,
 | 
			
		||||
	0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x10, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x0c, 0x52, 0x10, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x72, 0x6f, 0x78,
 | 
			
		||||
	0x79, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x24, 0x0a, 0x0d, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64,
 | 
			
		||||
	0x74, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x61,
 | 
			
		||||
	0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x62,
 | 
			
		||||
	0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x1b, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x03, 0x52, 0x0e, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x79,
 | 
			
		||||
	0x74, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74,
 | 
			
		||||
	0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f,
 | 
			
		||||
	0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43,
 | 
			
		||||
	0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70,
 | 
			
		||||
	0x62, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0c, 0x73,
 | 
			
		||||
	0x65, 0x72, 0x76, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x1c, 0x0a, 0x04, 0x75,
 | 
			
		||||
	0x73, 0x65, 0x72, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55,
 | 
			
		||||
	0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70,
 | 
			
		||||
	0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
@@ -433,19 +426,17 @@ var file_models_model_server_proto_goTypes = []interface{}{
 | 
			
		||||
	(*NodeCluster)(nil),              // 2: pb.NodeCluster
 | 
			
		||||
	(*ServerGroup)(nil),              // 3: pb.ServerGroup
 | 
			
		||||
	(*User)(nil),                     // 4: pb.User
 | 
			
		||||
	(*ServerDailyStat)(nil),          // 5: pb.ServerDailyStat
 | 
			
		||||
}
 | 
			
		||||
var file_models_model_server_proto_depIdxs = []int32{
 | 
			
		||||
	1, // 0: pb.Server.auditingResult:type_name -> pb.ServerNameAuditingResult
 | 
			
		||||
	2, // 1: pb.Server.nodeCluster:type_name -> pb.NodeCluster
 | 
			
		||||
	3, // 2: pb.Server.serverGroups:type_name -> pb.ServerGroup
 | 
			
		||||
	4, // 3: pb.Server.user:type_name -> pb.User
 | 
			
		||||
	5, // 4: pb.Server.latestServerDailyStat:type_name -> pb.ServerDailyStat
 | 
			
		||||
	5, // [5:5] is the sub-list for method output_type
 | 
			
		||||
	5, // [5:5] is the sub-list for method input_type
 | 
			
		||||
	5, // [5:5] is the sub-list for extension type_name
 | 
			
		||||
	5, // [5:5] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:5] is the sub-list for field type_name
 | 
			
		||||
	4, // [4:4] is the sub-list for method output_type
 | 
			
		||||
	4, // [4:4] is the sub-list for method input_type
 | 
			
		||||
	4, // [4:4] is the sub-list for extension type_name
 | 
			
		||||
	4, // [4:4] is the sub-list for extension extendee
 | 
			
		||||
	0, // [0:4] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_models_model_server_proto_init() }
 | 
			
		||||
@@ -457,7 +448,6 @@ func file_models_model_server_proto_init() {
 | 
			
		||||
	file_models_model_server_group_proto_init()
 | 
			
		||||
	file_models_model_user_proto_init()
 | 
			
		||||
	file_models_model_server_name_auditing_result_proto_init()
 | 
			
		||||
	file_models_model_server_daily_stat_proto_init()
 | 
			
		||||
	if !protoimpl.UnsafeEnabled {
 | 
			
		||||
		file_models_model_server_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
			switch v := v.(*Server); i {
 | 
			
		||||
 
 | 
			
		||||
@@ -37,6 +37,7 @@ type ServerBandwidthStat struct {
 | 
			
		||||
	Day      string `protobuf:"bytes,4,opt,name=day,proto3" json:"day,omitempty"`
 | 
			
		||||
	TimeAt   string `protobuf:"bytes,5,opt,name=timeAt,proto3" json:"timeAt,omitempty"`
 | 
			
		||||
	Bytes    int64  `protobuf:"varint,6,opt,name=bytes,proto3" json:"bytes,omitempty"`
 | 
			
		||||
	Bits     int64  `protobuf:"varint,7,opt,name=bits,proto3" json:"bits,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *ServerBandwidthStat) Reset() {
 | 
			
		||||
@@ -113,12 +114,19 @@ func (x *ServerBandwidthStat) GetBytes() int64 {
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *ServerBandwidthStat) GetBits() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Bits
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_models_model_server_bandwidth_stat_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
var file_models_model_server_bandwidth_stat_proto_rawDesc = []byte{
 | 
			
		||||
	0x0a, 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x73,
 | 
			
		||||
	0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x62, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x5f,
 | 
			
		||||
	0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x99,
 | 
			
		||||
	0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xad,
 | 
			
		||||
	0x01, 0x0a, 0x13, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64,
 | 
			
		||||
	0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
 | 
			
		||||
	0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
 | 
			
		||||
@@ -128,8 +136,9 @@ var file_models_model_server_bandwidth_stat_proto_rawDesc = []byte{
 | 
			
		||||
	0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06,
 | 
			
		||||
	0x74, 0x69, 0x6d, 0x65, 0x41, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x69,
 | 
			
		||||
	0x6d, 0x65, 0x41, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
 | 
			
		||||
	0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 | 
			
		||||
	0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69,
 | 
			
		||||
	0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x42, 0x06,
 | 
			
		||||
	0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -394,6 +394,141 @@ func (x *FindDailyServerBandwidthStatsResponse) GetStats() []*FindDailyServerBan
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 读取日期段内的带宽数据
 | 
			
		||||
type FindDailyServerBandwidthStatsBetweenDaysRequest struct {
 | 
			
		||||
	state         protoimpl.MessageState
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
 | 
			
		||||
	UserId     int64  `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`         // 用户ID,和服务ID二选一
 | 
			
		||||
	ServerId   int64  `protobuf:"varint,2,opt,name=serverId,proto3" json:"serverId,omitempty"`     // 服务ID,和用户ID二选一
 | 
			
		||||
	DayFrom    string `protobuf:"bytes,3,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"`        // 开始日期 YYYYMMDD
 | 
			
		||||
	DayTo      string `protobuf:"bytes,4,opt,name=dayTo,proto3" json:"dayTo,omitempty"`            // 结束日期 YYYYMMDD
 | 
			
		||||
	Percentile int32  `protobuf:"varint,5,opt,name=percentile,proto3" json:"percentile,omitempty"` // 可选项,百分位(nth)带宽位置,0-100之间
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) Reset() {
 | 
			
		||||
	*x = FindDailyServerBandwidthStatsBetweenDaysRequest{}
 | 
			
		||||
	if protoimpl.UnsafeEnabled {
 | 
			
		||||
		mi := &file_service_server_bandwidth_stat_proto_msgTypes[7]
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		ms.StoreMessageInfo(mi)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*FindDailyServerBandwidthStatsBetweenDaysRequest) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_service_server_bandwidth_stat_proto_msgTypes[7]
 | 
			
		||||
	if protoimpl.UnsafeEnabled && x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use FindDailyServerBandwidthStatsBetweenDaysRequest.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*FindDailyServerBandwidthStatsBetweenDaysRequest) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_service_server_bandwidth_stat_proto_rawDescGZIP(), []int{7}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) GetUserId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.UserId
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) GetServerId() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.ServerId
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) GetDayFrom() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.DayFrom
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) GetDayTo() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.DayTo
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysRequest) GetPercentile() int32 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Percentile
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type FindDailyServerBandwidthStatsBetweenDaysResponse struct {
 | 
			
		||||
	state         protoimpl.MessageState
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
 | 
			
		||||
	Stats   []*FindDailyServerBandwidthStatsBetweenDaysResponse_Stat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
 | 
			
		||||
	NthStat *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat   `protobuf:"bytes,2,opt,name=nthStat,proto3" json:"nthStat,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse) Reset() {
 | 
			
		||||
	*x = FindDailyServerBandwidthStatsBetweenDaysResponse{}
 | 
			
		||||
	if protoimpl.UnsafeEnabled {
 | 
			
		||||
		mi := &file_service_server_bandwidth_stat_proto_msgTypes[8]
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		ms.StoreMessageInfo(mi)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*FindDailyServerBandwidthStatsBetweenDaysResponse) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_service_server_bandwidth_stat_proto_msgTypes[8]
 | 
			
		||||
	if protoimpl.UnsafeEnabled && x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use FindDailyServerBandwidthStatsBetweenDaysResponse.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*FindDailyServerBandwidthStatsBetweenDaysResponse) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_service_server_bandwidth_stat_proto_rawDescGZIP(), []int{8}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse) GetStats() []*FindDailyServerBandwidthStatsBetweenDaysResponse_Stat {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Stats
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse) GetNthStat() *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.NthStat
 | 
			
		||||
	}
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type FindHourlyServerBandwidthStatsResponse_Stat struct {
 | 
			
		||||
	state         protoimpl.MessageState
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
@@ -402,12 +537,13 @@ type FindHourlyServerBandwidthStatsResponse_Stat struct {
 | 
			
		||||
	Day   string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"`
 | 
			
		||||
	Hour  int32  `protobuf:"varint,2,opt,name=hour,proto3" json:"hour,omitempty"`
 | 
			
		||||
	Bytes int64  `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"`
 | 
			
		||||
	Bits  int64  `protobuf:"varint,4,opt,name=bits,proto3" json:"bits,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindHourlyServerBandwidthStatsResponse_Stat) Reset() {
 | 
			
		||||
	*x = FindHourlyServerBandwidthStatsResponse_Stat{}
 | 
			
		||||
	if protoimpl.UnsafeEnabled {
 | 
			
		||||
		mi := &file_service_server_bandwidth_stat_proto_msgTypes[7]
 | 
			
		||||
		mi := &file_service_server_bandwidth_stat_proto_msgTypes[9]
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		ms.StoreMessageInfo(mi)
 | 
			
		||||
	}
 | 
			
		||||
@@ -420,7 +556,7 @@ func (x *FindHourlyServerBandwidthStatsResponse_Stat) String() string {
 | 
			
		||||
func (*FindHourlyServerBandwidthStatsResponse_Stat) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *FindHourlyServerBandwidthStatsResponse_Stat) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_service_server_bandwidth_stat_proto_msgTypes[7]
 | 
			
		||||
	mi := &file_service_server_bandwidth_stat_proto_msgTypes[9]
 | 
			
		||||
	if protoimpl.UnsafeEnabled && x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
@@ -457,6 +593,13 @@ func (x *FindHourlyServerBandwidthStatsResponse_Stat) GetBytes() int64 {
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindHourlyServerBandwidthStatsResponse_Stat) GetBits() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Bits
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type FindDailyServerBandwidthStatsResponse_Stat struct {
 | 
			
		||||
	state         protoimpl.MessageState
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
@@ -464,12 +607,13 @@ type FindDailyServerBandwidthStatsResponse_Stat struct {
 | 
			
		||||
 | 
			
		||||
	Day   string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"`
 | 
			
		||||
	Bytes int64  `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"`
 | 
			
		||||
	Bits  int64  `protobuf:"varint,4,opt,name=bits,proto3" json:"bits,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsResponse_Stat) Reset() {
 | 
			
		||||
	*x = FindDailyServerBandwidthStatsResponse_Stat{}
 | 
			
		||||
	if protoimpl.UnsafeEnabled {
 | 
			
		||||
		mi := &file_service_server_bandwidth_stat_proto_msgTypes[8]
 | 
			
		||||
		mi := &file_service_server_bandwidth_stat_proto_msgTypes[10]
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		ms.StoreMessageInfo(mi)
 | 
			
		||||
	}
 | 
			
		||||
@@ -482,7 +626,7 @@ func (x *FindDailyServerBandwidthStatsResponse_Stat) String() string {
 | 
			
		||||
func (*FindDailyServerBandwidthStatsResponse_Stat) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsResponse_Stat) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_service_server_bandwidth_stat_proto_msgTypes[8]
 | 
			
		||||
	mi := &file_service_server_bandwidth_stat_proto_msgTypes[10]
 | 
			
		||||
	if protoimpl.UnsafeEnabled && x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
@@ -512,6 +656,84 @@ func (x *FindDailyServerBandwidthStatsResponse_Stat) GetBytes() int64 {
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsResponse_Stat) GetBits() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Bits
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type FindDailyServerBandwidthStatsBetweenDaysResponse_Stat struct {
 | 
			
		||||
	state         protoimpl.MessageState
 | 
			
		||||
	sizeCache     protoimpl.SizeCache
 | 
			
		||||
	unknownFields protoimpl.UnknownFields
 | 
			
		||||
 | 
			
		||||
	Day    string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"`
 | 
			
		||||
	TimeAt string `protobuf:"bytes,2,opt,name=timeAt,proto3" json:"timeAt,omitempty"`
 | 
			
		||||
	Bytes  int64  `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` // 字节/秒
 | 
			
		||||
	Bits   int64  `protobuf:"varint,4,opt,name=bits,proto3" json:"bits,omitempty"`   // 比特/秒
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) Reset() {
 | 
			
		||||
	*x = FindDailyServerBandwidthStatsBetweenDaysResponse_Stat{}
 | 
			
		||||
	if protoimpl.UnsafeEnabled {
 | 
			
		||||
		mi := &file_service_server_bandwidth_stat_proto_msgTypes[11]
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		ms.StoreMessageInfo(mi)
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) String() string {
 | 
			
		||||
	return protoimpl.X.MessageStringOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (*FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) ProtoMessage() {}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) ProtoReflect() protoreflect.Message {
 | 
			
		||||
	mi := &file_service_server_bandwidth_stat_proto_msgTypes[11]
 | 
			
		||||
	if protoimpl.UnsafeEnabled && x != nil {
 | 
			
		||||
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 | 
			
		||||
		if ms.LoadMessageInfo() == nil {
 | 
			
		||||
			ms.StoreMessageInfo(mi)
 | 
			
		||||
		}
 | 
			
		||||
		return ms
 | 
			
		||||
	}
 | 
			
		||||
	return mi.MessageOf(x)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Deprecated: Use FindDailyServerBandwidthStatsBetweenDaysResponse_Stat.ProtoReflect.Descriptor instead.
 | 
			
		||||
func (*FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) Descriptor() ([]byte, []int) {
 | 
			
		||||
	return file_service_server_bandwidth_stat_proto_rawDescGZIP(), []int{8, 0}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) GetDay() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Day
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) GetTimeAt() string {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.TimeAt
 | 
			
		||||
	}
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) GetBytes() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Bytes
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (x *FindDailyServerBandwidthStatsBetweenDaysResponse_Stat) GetBits() int64 {
 | 
			
		||||
	if x != nil {
 | 
			
		||||
		return x.Bits
 | 
			
		||||
	}
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var File_service_server_bandwidth_stat_proto protoreflect.FileDescriptor
 | 
			
		||||
 | 
			
		||||
var file_service_server_bandwidth_stat_proto_rawDesc = []byte{
 | 
			
		||||
@@ -548,63 +770,106 @@ var file_service_server_bandwidth_stat_proto_rawDesc = []byte{
 | 
			
		||||
	0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a,
 | 
			
		||||
	0x05, 0x68, 0x6f, 0x75, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x68, 0x6f,
 | 
			
		||||
	0x75, 0x72, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72,
 | 
			
		||||
	0x75, 0x72, 0x73, 0x22, 0xc7, 0x01, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72,
 | 
			
		||||
	0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74,
 | 
			
		||||
	0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45,
 | 
			
		||||
	0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e,
 | 
			
		||||
	0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x65, 0x72,
 | 
			
		||||
	0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74,
 | 
			
		||||
	0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x05,
 | 
			
		||||
	0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x42, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x0a,
 | 
			
		||||
	0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x56, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x0a,
 | 
			
		||||
	0x03, 0x64, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12,
 | 
			
		||||
	0x12, 0x0a, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68,
 | 
			
		||||
	0x6f, 0x75, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01,
 | 
			
		||||
	0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0x56, 0x0a, 0x24, 0x46, 0x69, 0x6e,
 | 
			
		||||
	0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64,
 | 
			
		||||
	0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
 | 
			
		||||
	0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a,
 | 
			
		||||
	0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79,
 | 
			
		||||
	0x73, 0x22, 0x9d, 0x01, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53,
 | 
			
		||||
	0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74,
 | 
			
		||||
	0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x05, 0x73,
 | 
			
		||||
	0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x70, 0x62, 0x2e,
 | 
			
		||||
	0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42,
 | 
			
		||||
	0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73,
 | 
			
		||||
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74,
 | 
			
		||||
	0x73, 0x1a, 0x2e, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79,
 | 
			
		||||
	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x62,
 | 
			
		||||
	0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65,
 | 
			
		||||
	0x73, 0x32, 0xc7, 0x03, 0x0a, 0x1a, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64,
 | 
			
		||||
	0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
 | 
			
		||||
	0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25,
 | 
			
		||||
	0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69, 0x74,
 | 
			
		||||
	0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x22, 0x56, 0x0a,
 | 
			
		||||
	0x24, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65,
 | 
			
		||||
	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75,
 | 
			
		||||
	0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72,
 | 
			
		||||
	0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49,
 | 
			
		||||
	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49,
 | 
			
		||||
	0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
 | 
			
		||||
	0x04, 0x64, 0x61, 0x79, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61,
 | 
			
		||||
	0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64,
 | 
			
		||||
	0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
 | 
			
		||||
	0x44, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e,
 | 
			
		||||
	0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72,
 | 
			
		||||
	0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74,
 | 
			
		||||
	0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65,
 | 
			
		||||
	0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52,
 | 
			
		||||
	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
 | 
			
		||||
	0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53,
 | 
			
		||||
	0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e,
 | 
			
		||||
	0x66, 0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
 | 
			
		||||
	0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x29,
 | 
			
		||||
	0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x65,
 | 
			
		||||
	0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61,
 | 
			
		||||
	0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46,
 | 
			
		||||
	0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42,
 | 
			
		||||
	0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73,
 | 
			
		||||
	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69,
 | 
			
		||||
	0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74,
 | 
			
		||||
	0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64,
 | 
			
		||||
	0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77,
 | 
			
		||||
	0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
 | 
			
		||||
	0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53,
 | 
			
		||||
	0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x05,
 | 
			
		||||
	0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x42, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x0a,
 | 
			
		||||
	0x03, 0x64, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12,
 | 
			
		||||
	0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
 | 
			
		||||
	0x62, 0x79, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20,
 | 
			
		||||
	0x01, 0x28, 0x03, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x22, 0xb5, 0x01, 0x0a, 0x2f, 0x46, 0x69,
 | 
			
		||||
	0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e,
 | 
			
		||||
	0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65,
 | 
			
		||||
	0x65, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a,
 | 
			
		||||
	0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
 | 
			
		||||
	0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49,
 | 
			
		||||
	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49,
 | 
			
		||||
	0x64, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01,
 | 
			
		||||
	0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x64,
 | 
			
		||||
	0x61, 0x79, 0x54, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54,
 | 
			
		||||
	0x6f, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c, 0x65, 0x18,
 | 
			
		||||
	0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x69, 0x6c,
 | 
			
		||||
	0x65, 0x22, 0xb4, 0x02, 0x0a, 0x30, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53,
 | 
			
		||||
	0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74,
 | 
			
		||||
	0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e,
 | 
			
		||||
	0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 | 
			
		||||
	0x61, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x52, 0x65,
 | 
			
		||||
	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18,
 | 
			
		||||
	0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44,
 | 
			
		||||
	0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69,
 | 
			
		||||
	0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x44,
 | 
			
		||||
	0x61, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74,
 | 
			
		||||
	0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x12, 0x53, 0x0a, 0x07, 0x6e, 0x74, 0x68, 0x53, 0x74,
 | 
			
		||||
	0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
 | 
			
		||||
	0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e,
 | 
			
		||||
	0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65,
 | 
			
		||||
	0x65, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53,
 | 
			
		||||
	0x74, 0x61, 0x74, 0x52, 0x07, 0x6e, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x1a, 0x5a, 0x0a, 0x04,
 | 
			
		||||
	0x53, 0x74, 0x61, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
 | 
			
		||||
	0x09, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x69, 0x6d, 0x65, 0x41, 0x74,
 | 
			
		||||
	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x69, 0x6d, 0x65, 0x41, 0x74, 0x12, 0x14,
 | 
			
		||||
	0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62,
 | 
			
		||||
	0x79, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01,
 | 
			
		||||
	0x28, 0x03, 0x52, 0x04, 0x62, 0x69, 0x74, 0x73, 0x32, 0xdf, 0x04, 0x0a, 0x1a, 0x53, 0x65, 0x72,
 | 
			
		||||
	0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74,
 | 
			
		||||
	0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70, 0x6c, 0x6f, 0x61,
 | 
			
		||||
	0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68,
 | 
			
		||||
	0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61,
 | 
			
		||||
	0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68,
 | 
			
		||||
	0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70,
 | 
			
		||||
	0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x65, 0x0a, 0x18,
 | 
			
		||||
	0x66, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69,
 | 
			
		||||
	0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
 | 
			
		||||
	0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74,
 | 
			
		||||
	0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e,
 | 
			
		||||
	0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e,
 | 
			
		||||
	0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
 | 
			
		||||
	0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72, 0x6c,
 | 
			
		||||
	0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68,
 | 
			
		||||
	0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x48,
 | 
			
		||||
	0x6f, 0x75, 0x72, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77,
 | 
			
		||||
	0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
 | 
			
		||||
	0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x48, 0x6f, 0x75, 0x72, 0x6c, 0x79,
 | 
			
		||||
	0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53,
 | 
			
		||||
	0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, 0x1d,
 | 
			
		||||
	0x66, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42,
 | 
			
		||||
	0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x28, 0x2e,
 | 
			
		||||
	0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76,
 | 
			
		||||
	0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73,
 | 
			
		||||
	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
 | 
			
		||||
	0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64,
 | 
			
		||||
	0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
 | 
			
		||||
	0x73, 0x65, 0x12, 0x95, 0x01, 0x0a, 0x28, 0x66, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79,
 | 
			
		||||
	0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53,
 | 
			
		||||
	0x74, 0x61, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x12,
 | 
			
		||||
	0x33, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61, 0x69, 0x6c, 0x79, 0x53, 0x65,
 | 
			
		||||
	0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x74, 0x61,
 | 
			
		||||
	0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x52, 0x65, 0x71,
 | 
			
		||||
	0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x44, 0x61,
 | 
			
		||||
	0x69, 0x6c, 0x79, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64,
 | 
			
		||||
	0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x73, 0x42, 0x65, 0x74, 0x77, 0x65, 0x65, 0x6e, 0x44, 0x61,
 | 
			
		||||
	0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
 | 
			
		||||
	0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var (
 | 
			
		||||
@@ -619,38 +884,45 @@ func file_service_server_bandwidth_stat_proto_rawDescGZIP() []byte {
 | 
			
		||||
	return file_service_server_bandwidth_stat_proto_rawDescData
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var file_service_server_bandwidth_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
 | 
			
		||||
var file_service_server_bandwidth_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
 | 
			
		||||
var file_service_server_bandwidth_stat_proto_goTypes = []interface{}{
 | 
			
		||||
	(*UploadServerBandwidthStatsRequest)(nil),           // 0: pb.UploadServerBandwidthStatsRequest
 | 
			
		||||
	(*FindServerBandwidthStatsRequest)(nil),             // 1: pb.FindServerBandwidthStatsRequest
 | 
			
		||||
	(*FindServerBandwidthStatsResponse)(nil),            // 2: pb.FindServerBandwidthStatsResponse
 | 
			
		||||
	(*FindHourlyServerBandwidthStatsRequest)(nil),       // 3: pb.FindHourlyServerBandwidthStatsRequest
 | 
			
		||||
	(*FindHourlyServerBandwidthStatsResponse)(nil),      // 4: pb.FindHourlyServerBandwidthStatsResponse
 | 
			
		||||
	(*FindDailyServerBandwidthStatsRequest)(nil),        // 5: pb.FindDailyServerBandwidthStatsRequest
 | 
			
		||||
	(*FindDailyServerBandwidthStatsResponse)(nil),       // 6: pb.FindDailyServerBandwidthStatsResponse
 | 
			
		||||
	(*FindHourlyServerBandwidthStatsResponse_Stat)(nil), // 7: pb.FindHourlyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	(*FindDailyServerBandwidthStatsResponse_Stat)(nil),  // 8: pb.FindDailyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	(*ServerBandwidthStat)(nil),                         // 9: pb.ServerBandwidthStat
 | 
			
		||||
	(*RPCSuccess)(nil),                                  // 10: pb.RPCSuccess
 | 
			
		||||
	(*UploadServerBandwidthStatsRequest)(nil),                     // 0: pb.UploadServerBandwidthStatsRequest
 | 
			
		||||
	(*FindServerBandwidthStatsRequest)(nil),                       // 1: pb.FindServerBandwidthStatsRequest
 | 
			
		||||
	(*FindServerBandwidthStatsResponse)(nil),                      // 2: pb.FindServerBandwidthStatsResponse
 | 
			
		||||
	(*FindHourlyServerBandwidthStatsRequest)(nil),                 // 3: pb.FindHourlyServerBandwidthStatsRequest
 | 
			
		||||
	(*FindHourlyServerBandwidthStatsResponse)(nil),                // 4: pb.FindHourlyServerBandwidthStatsResponse
 | 
			
		||||
	(*FindDailyServerBandwidthStatsRequest)(nil),                  // 5: pb.FindDailyServerBandwidthStatsRequest
 | 
			
		||||
	(*FindDailyServerBandwidthStatsResponse)(nil),                 // 6: pb.FindDailyServerBandwidthStatsResponse
 | 
			
		||||
	(*FindDailyServerBandwidthStatsBetweenDaysRequest)(nil),       // 7: pb.FindDailyServerBandwidthStatsBetweenDaysRequest
 | 
			
		||||
	(*FindDailyServerBandwidthStatsBetweenDaysResponse)(nil),      // 8: pb.FindDailyServerBandwidthStatsBetweenDaysResponse
 | 
			
		||||
	(*FindHourlyServerBandwidthStatsResponse_Stat)(nil),           // 9: pb.FindHourlyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	(*FindDailyServerBandwidthStatsResponse_Stat)(nil),            // 10: pb.FindDailyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	(*FindDailyServerBandwidthStatsBetweenDaysResponse_Stat)(nil), // 11: pb.FindDailyServerBandwidthStatsBetweenDaysResponse.Stat
 | 
			
		||||
	(*ServerBandwidthStat)(nil),                                   // 12: pb.ServerBandwidthStat
 | 
			
		||||
	(*RPCSuccess)(nil),                                            // 13: pb.RPCSuccess
 | 
			
		||||
}
 | 
			
		||||
var file_service_server_bandwidth_stat_proto_depIdxs = []int32{
 | 
			
		||||
	9,  // 0: pb.UploadServerBandwidthStatsRequest.serverBandwidthStats:type_name -> pb.ServerBandwidthStat
 | 
			
		||||
	9,  // 1: pb.FindServerBandwidthStatsResponse.serverBandwidthStats:type_name -> pb.ServerBandwidthStat
 | 
			
		||||
	7,  // 2: pb.FindHourlyServerBandwidthStatsResponse.stats:type_name -> pb.FindHourlyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	8,  // 3: pb.FindDailyServerBandwidthStatsResponse.stats:type_name -> pb.FindDailyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	0,  // 4: pb.ServerBandwidthStatService.uploadServerBandwidthStats:input_type -> pb.UploadServerBandwidthStatsRequest
 | 
			
		||||
	1,  // 5: pb.ServerBandwidthStatService.findServerBandwidthStats:input_type -> pb.FindServerBandwidthStatsRequest
 | 
			
		||||
	3,  // 6: pb.ServerBandwidthStatService.findHourlyServerBandwidthStats:input_type -> pb.FindHourlyServerBandwidthStatsRequest
 | 
			
		||||
	5,  // 7: pb.ServerBandwidthStatService.findDailyServerBandwidthStats:input_type -> pb.FindDailyServerBandwidthStatsRequest
 | 
			
		||||
	10, // 8: pb.ServerBandwidthStatService.uploadServerBandwidthStats:output_type -> pb.RPCSuccess
 | 
			
		||||
	2,  // 9: pb.ServerBandwidthStatService.findServerBandwidthStats:output_type -> pb.FindServerBandwidthStatsResponse
 | 
			
		||||
	4,  // 10: pb.ServerBandwidthStatService.findHourlyServerBandwidthStats:output_type -> pb.FindHourlyServerBandwidthStatsResponse
 | 
			
		||||
	6,  // 11: pb.ServerBandwidthStatService.findDailyServerBandwidthStats:output_type -> pb.FindDailyServerBandwidthStatsResponse
 | 
			
		||||
	8,  // [8:12] is the sub-list for method output_type
 | 
			
		||||
	4,  // [4:8] is the sub-list for method input_type
 | 
			
		||||
	4,  // [4:4] is the sub-list for extension type_name
 | 
			
		||||
	4,  // [4:4] is the sub-list for extension extendee
 | 
			
		||||
	0,  // [0:4] is the sub-list for field type_name
 | 
			
		||||
	12, // 0: pb.UploadServerBandwidthStatsRequest.serverBandwidthStats:type_name -> pb.ServerBandwidthStat
 | 
			
		||||
	12, // 1: pb.FindServerBandwidthStatsResponse.serverBandwidthStats:type_name -> pb.ServerBandwidthStat
 | 
			
		||||
	9,  // 2: pb.FindHourlyServerBandwidthStatsResponse.stats:type_name -> pb.FindHourlyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	10, // 3: pb.FindDailyServerBandwidthStatsResponse.stats:type_name -> pb.FindDailyServerBandwidthStatsResponse.Stat
 | 
			
		||||
	11, // 4: pb.FindDailyServerBandwidthStatsBetweenDaysResponse.stats:type_name -> pb.FindDailyServerBandwidthStatsBetweenDaysResponse.Stat
 | 
			
		||||
	11, // 5: pb.FindDailyServerBandwidthStatsBetweenDaysResponse.nthStat:type_name -> pb.FindDailyServerBandwidthStatsBetweenDaysResponse.Stat
 | 
			
		||||
	0,  // 6: pb.ServerBandwidthStatService.uploadServerBandwidthStats:input_type -> pb.UploadServerBandwidthStatsRequest
 | 
			
		||||
	1,  // 7: pb.ServerBandwidthStatService.findServerBandwidthStats:input_type -> pb.FindServerBandwidthStatsRequest
 | 
			
		||||
	3,  // 8: pb.ServerBandwidthStatService.findHourlyServerBandwidthStats:input_type -> pb.FindHourlyServerBandwidthStatsRequest
 | 
			
		||||
	5,  // 9: pb.ServerBandwidthStatService.findDailyServerBandwidthStats:input_type -> pb.FindDailyServerBandwidthStatsRequest
 | 
			
		||||
	7,  // 10: pb.ServerBandwidthStatService.findDailyServerBandwidthStatsBetweenDays:input_type -> pb.FindDailyServerBandwidthStatsBetweenDaysRequest
 | 
			
		||||
	13, // 11: pb.ServerBandwidthStatService.uploadServerBandwidthStats:output_type -> pb.RPCSuccess
 | 
			
		||||
	2,  // 12: pb.ServerBandwidthStatService.findServerBandwidthStats:output_type -> pb.FindServerBandwidthStatsResponse
 | 
			
		||||
	4,  // 13: pb.ServerBandwidthStatService.findHourlyServerBandwidthStats:output_type -> pb.FindHourlyServerBandwidthStatsResponse
 | 
			
		||||
	6,  // 14: pb.ServerBandwidthStatService.findDailyServerBandwidthStats:output_type -> pb.FindDailyServerBandwidthStatsResponse
 | 
			
		||||
	8,  // 15: pb.ServerBandwidthStatService.findDailyServerBandwidthStatsBetweenDays:output_type -> pb.FindDailyServerBandwidthStatsBetweenDaysResponse
 | 
			
		||||
	11, // [11:16] is the sub-list for method output_type
 | 
			
		||||
	6,  // [6:11] is the sub-list for method input_type
 | 
			
		||||
	6,  // [6:6] is the sub-list for extension type_name
 | 
			
		||||
	6,  // [6:6] is the sub-list for extension extendee
 | 
			
		||||
	0,  // [0:6] is the sub-list for field type_name
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func init() { file_service_server_bandwidth_stat_proto_init() }
 | 
			
		||||
@@ -746,7 +1018,7 @@ func file_service_server_bandwidth_stat_proto_init() {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		file_service_server_bandwidth_stat_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
			switch v := v.(*FindHourlyServerBandwidthStatsResponse_Stat); i {
 | 
			
		||||
			switch v := v.(*FindDailyServerBandwidthStatsBetweenDaysRequest); i {
 | 
			
		||||
			case 0:
 | 
			
		||||
				return &v.state
 | 
			
		||||
			case 1:
 | 
			
		||||
@@ -758,6 +1030,30 @@ func file_service_server_bandwidth_stat_proto_init() {
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		file_service_server_bandwidth_stat_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
			switch v := v.(*FindDailyServerBandwidthStatsBetweenDaysResponse); i {
 | 
			
		||||
			case 0:
 | 
			
		||||
				return &v.state
 | 
			
		||||
			case 1:
 | 
			
		||||
				return &v.sizeCache
 | 
			
		||||
			case 2:
 | 
			
		||||
				return &v.unknownFields
 | 
			
		||||
			default:
 | 
			
		||||
				return nil
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		file_service_server_bandwidth_stat_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
			switch v := v.(*FindHourlyServerBandwidthStatsResponse_Stat); i {
 | 
			
		||||
			case 0:
 | 
			
		||||
				return &v.state
 | 
			
		||||
			case 1:
 | 
			
		||||
				return &v.sizeCache
 | 
			
		||||
			case 2:
 | 
			
		||||
				return &v.unknownFields
 | 
			
		||||
			default:
 | 
			
		||||
				return nil
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		file_service_server_bandwidth_stat_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
			switch v := v.(*FindDailyServerBandwidthStatsResponse_Stat); i {
 | 
			
		||||
			case 0:
 | 
			
		||||
				return &v.state
 | 
			
		||||
@@ -769,6 +1065,18 @@ func file_service_server_bandwidth_stat_proto_init() {
 | 
			
		||||
				return nil
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		file_service_server_bandwidth_stat_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
 | 
			
		||||
			switch v := v.(*FindDailyServerBandwidthStatsBetweenDaysResponse_Stat); i {
 | 
			
		||||
			case 0:
 | 
			
		||||
				return &v.state
 | 
			
		||||
			case 1:
 | 
			
		||||
				return &v.sizeCache
 | 
			
		||||
			case 2:
 | 
			
		||||
				return &v.unknownFields
 | 
			
		||||
			default:
 | 
			
		||||
				return nil
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	type x struct{}
 | 
			
		||||
	out := protoimpl.TypeBuilder{
 | 
			
		||||
@@ -776,7 +1084,7 @@ func file_service_server_bandwidth_stat_proto_init() {
 | 
			
		||||
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 | 
			
		||||
			RawDescriptor: file_service_server_bandwidth_stat_proto_rawDesc,
 | 
			
		||||
			NumEnums:      0,
 | 
			
		||||
			NumMessages:   9,
 | 
			
		||||
			NumMessages:   12,
 | 
			
		||||
			NumExtensions: 0,
 | 
			
		||||
			NumServices:   1,
 | 
			
		||||
		},
 | 
			
		||||
@@ -810,6 +1118,8 @@ type ServerBandwidthStatServiceClient interface {
 | 
			
		||||
	FindHourlyServerBandwidthStats(ctx context.Context, in *FindHourlyServerBandwidthStatsRequest, opts ...grpc.CallOption) (*FindHourlyServerBandwidthStatsResponse, error)
 | 
			
		||||
	// 获取最近N天峰值带宽
 | 
			
		||||
	FindDailyServerBandwidthStats(ctx context.Context, in *FindDailyServerBandwidthStatsRequest, opts ...grpc.CallOption) (*FindDailyServerBandwidthStatsResponse, error)
 | 
			
		||||
	// 读取日期段内的带宽数据
 | 
			
		||||
	FindDailyServerBandwidthStatsBetweenDays(ctx context.Context, in *FindDailyServerBandwidthStatsBetweenDaysRequest, opts ...grpc.CallOption) (*FindDailyServerBandwidthStatsBetweenDaysResponse, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type serverBandwidthStatServiceClient struct {
 | 
			
		||||
@@ -856,6 +1166,15 @@ func (c *serverBandwidthStatServiceClient) FindDailyServerBandwidthStats(ctx con
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c *serverBandwidthStatServiceClient) FindDailyServerBandwidthStatsBetweenDays(ctx context.Context, in *FindDailyServerBandwidthStatsBetweenDaysRequest, opts ...grpc.CallOption) (*FindDailyServerBandwidthStatsBetweenDaysResponse, error) {
 | 
			
		||||
	out := new(FindDailyServerBandwidthStatsBetweenDaysResponse)
 | 
			
		||||
	err := c.cc.Invoke(ctx, "/pb.ServerBandwidthStatService/findDailyServerBandwidthStatsBetweenDays", in, out, opts...)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	return out, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// ServerBandwidthStatServiceServer is the server API for ServerBandwidthStatService service.
 | 
			
		||||
type ServerBandwidthStatServiceServer interface {
 | 
			
		||||
	// 上传带宽统计
 | 
			
		||||
@@ -866,6 +1185,8 @@ type ServerBandwidthStatServiceServer interface {
 | 
			
		||||
	FindHourlyServerBandwidthStats(context.Context, *FindHourlyServerBandwidthStatsRequest) (*FindHourlyServerBandwidthStatsResponse, error)
 | 
			
		||||
	// 获取最近N天峰值带宽
 | 
			
		||||
	FindDailyServerBandwidthStats(context.Context, *FindDailyServerBandwidthStatsRequest) (*FindDailyServerBandwidthStatsResponse, error)
 | 
			
		||||
	// 读取日期段内的带宽数据
 | 
			
		||||
	FindDailyServerBandwidthStatsBetweenDays(context.Context, *FindDailyServerBandwidthStatsBetweenDaysRequest) (*FindDailyServerBandwidthStatsBetweenDaysResponse, error)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UnimplementedServerBandwidthStatServiceServer can be embedded to have forward compatible implementations.
 | 
			
		||||
@@ -884,6 +1205,9 @@ func (*UnimplementedServerBandwidthStatServiceServer) FindHourlyServerBandwidthS
 | 
			
		||||
func (*UnimplementedServerBandwidthStatServiceServer) FindDailyServerBandwidthStats(context.Context, *FindDailyServerBandwidthStatsRequest) (*FindDailyServerBandwidthStatsResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method FindDailyServerBandwidthStats not implemented")
 | 
			
		||||
}
 | 
			
		||||
func (*UnimplementedServerBandwidthStatServiceServer) FindDailyServerBandwidthStatsBetweenDays(context.Context, *FindDailyServerBandwidthStatsBetweenDaysRequest) (*FindDailyServerBandwidthStatsBetweenDaysResponse, error) {
 | 
			
		||||
	return nil, status.Errorf(codes.Unimplemented, "method FindDailyServerBandwidthStatsBetweenDays not implemented")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func RegisterServerBandwidthStatServiceServer(s *grpc.Server, srv ServerBandwidthStatServiceServer) {
 | 
			
		||||
	s.RegisterService(&_ServerBandwidthStatService_serviceDesc, srv)
 | 
			
		||||
@@ -961,6 +1285,24 @@ func _ServerBandwidthStatService_FindDailyServerBandwidthStats_Handler(srv inter
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func _ServerBandwidthStatService_FindDailyServerBandwidthStatsBetweenDays_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
			
		||||
	in := new(FindDailyServerBandwidthStatsBetweenDaysRequest)
 | 
			
		||||
	if err := dec(in); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	if interceptor == nil {
 | 
			
		||||
		return srv.(ServerBandwidthStatServiceServer).FindDailyServerBandwidthStatsBetweenDays(ctx, in)
 | 
			
		||||
	}
 | 
			
		||||
	info := &grpc.UnaryServerInfo{
 | 
			
		||||
		Server:     srv,
 | 
			
		||||
		FullMethod: "/pb.ServerBandwidthStatService/FindDailyServerBandwidthStatsBetweenDays",
 | 
			
		||||
	}
 | 
			
		||||
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
			
		||||
		return srv.(ServerBandwidthStatServiceServer).FindDailyServerBandwidthStatsBetweenDays(ctx, req.(*FindDailyServerBandwidthStatsBetweenDaysRequest))
 | 
			
		||||
	}
 | 
			
		||||
	return interceptor(ctx, in, info, handler)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var _ServerBandwidthStatService_serviceDesc = grpc.ServiceDesc{
 | 
			
		||||
	ServiceName: "pb.ServerBandwidthStatService",
 | 
			
		||||
	HandlerType: (*ServerBandwidthStatServiceServer)(nil),
 | 
			
		||||
@@ -981,6 +1323,10 @@ var _ServerBandwidthStatService_serviceDesc = grpc.ServiceDesc{
 | 
			
		||||
			MethodName: "findDailyServerBandwidthStats",
 | 
			
		||||
			Handler:    _ServerBandwidthStatService_FindDailyServerBandwidthStats_Handler,
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			MethodName: "findDailyServerBandwidthStatsBetweenDays",
 | 
			
		||||
			Handler:    _ServerBandwidthStatService_FindDailyServerBandwidthStatsBetweenDays_Handler,
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	Streams:  []grpc.StreamDesc{},
 | 
			
		||||
	Metadata: "service_server_bandwidth_stat.proto",
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -7,7 +7,6 @@ import "models/model_node_cluster.proto";
 | 
			
		||||
import "models/model_server_group.proto";
 | 
			
		||||
import "models/model_user.proto";
 | 
			
		||||
import "models/model_server_name_auditing_result.proto";
 | 
			
		||||
import "models/model_server_daily_stat.proto";
 | 
			
		||||
 | 
			
		||||
message Server {
 | 
			
		||||
	int64 id = 1;
 | 
			
		||||
@@ -25,6 +24,7 @@ message Server {
 | 
			
		||||
	// 配置相关
 | 
			
		||||
	bytes config = 17;
 | 
			
		||||
	bytes serverNamesJSON = 8;
 | 
			
		||||
	string firstServerName = 33;
 | 
			
		||||
	int32 countServerNames = 28;
 | 
			
		||||
	bool isAuditing = 20;
 | 
			
		||||
	int64 auditingAt = 25;
 | 
			
		||||
@@ -46,5 +46,4 @@ message Server {
 | 
			
		||||
	NodeCluster nodeCluster = 30;
 | 
			
		||||
	repeated ServerGroup serverGroups = 31;
 | 
			
		||||
	User user = 32;
 | 
			
		||||
	ServerDailyStat latestServerDailyStat = 33 [deprecated = true];
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -11,4 +11,5 @@ message ServerBandwidthStat {
 | 
			
		||||
	string day = 4;
 | 
			
		||||
	string timeAt = 5;
 | 
			
		||||
	int64 bytes = 6;
 | 
			
		||||
	int64 bits = 7;
 | 
			
		||||
}
 | 
			
		||||
@@ -119,6 +119,9 @@ service ServerService {
 | 
			
		||||
	// 查找一个用户下的所有域名列表
 | 
			
		||||
	rpc findAllEnabledServerNamesWithUserId (FindAllEnabledServerNamesWithUserIdRequest) returns (FindAllEnabledServerNamesWithUserIdResponse);
 | 
			
		||||
 | 
			
		||||
	// 查找一个用户下的所有服务
 | 
			
		||||
	rpc findAllUserServers(FindAllUserServersRequest) returns (FindAllUserServersResponse);
 | 
			
		||||
 | 
			
		||||
	// 查找用户服务基本信息
 | 
			
		||||
	rpc findEnabledUserServerBasic (FindEnabledUserServerBasicRequest) returns (FindEnabledUserServerBasicResponse);
 | 
			
		||||
 | 
			
		||||
@@ -462,6 +465,15 @@ message FindAllEnabledServerNamesWithUserIdResponse {
 | 
			
		||||
	repeated string serverNames = 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 查找一个用户下的所有服务
 | 
			
		||||
message FindAllUserServersRequest {
 | 
			
		||||
	int64 userId = 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message FindAllUserServersResponse {
 | 
			
		||||
	repeated Server servers = 1; // 只返回一些简要信息
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 查找用户服务基本信息
 | 
			
		||||
message FindEnabledUserServerBasicRequest {
 | 
			
		||||
	int64 serverId = 1;
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,9 @@ service ServerBandwidthStatService {
 | 
			
		||||
 | 
			
		||||
	// 获取最近N天峰值带宽
 | 
			
		||||
	rpc findDailyServerBandwidthStats(FindDailyServerBandwidthStatsRequest) returns (FindDailyServerBandwidthStatsResponse);
 | 
			
		||||
 | 
			
		||||
	// 读取日期段内的带宽数据
 | 
			
		||||
	rpc findDailyServerBandwidthStatsBetweenDays (FindDailyServerBandwidthStatsBetweenDaysRequest) returns (FindDailyServerBandwidthStatsBetweenDaysResponse);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 上传带宽统计
 | 
			
		||||
@@ -50,6 +53,7 @@ message FindHourlyServerBandwidthStatsResponse {
 | 
			
		||||
		string day = 1;
 | 
			
		||||
		int32 hour = 2;
 | 
			
		||||
		int64 bytes = 3;
 | 
			
		||||
		int64 bits = 4;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -65,5 +69,27 @@ message FindDailyServerBandwidthStatsResponse {
 | 
			
		||||
	message Stat {
 | 
			
		||||
		string day = 1;
 | 
			
		||||
		int64 bytes = 3;
 | 
			
		||||
		int64 bits = 4;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 读取日期段内的带宽数据
 | 
			
		||||
message FindDailyServerBandwidthStatsBetweenDaysRequest {
 | 
			
		||||
	int64 userId = 1; // 用户ID,和服务ID二选一
 | 
			
		||||
	int64 serverId = 2; // 服务ID,和用户ID二选一
 | 
			
		||||
	string dayFrom = 3; // 开始日期 YYYYMMDD
 | 
			
		||||
	string dayTo = 4; // 结束日期 YYYYMMDD
 | 
			
		||||
	int32 percentile = 5; // 可选项,百分位(nth)带宽位置,0-100之间
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message FindDailyServerBandwidthStatsBetweenDaysResponse {
 | 
			
		||||
	repeated Stat stats = 1;
 | 
			
		||||
	Stat nthStat = 2;
 | 
			
		||||
 | 
			
		||||
	message Stat {
 | 
			
		||||
		string day = 1;
 | 
			
		||||
		string timeAt = 2;
 | 
			
		||||
		int64 bytes = 3; // 字节/秒
 | 
			
		||||
		int64 bits = 4; // 比特/秒
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -20,9 +20,12 @@ service ServerDailyStatService {
 | 
			
		||||
	// 读取某天的5分钟间隔流量
 | 
			
		||||
	rpc findServer5MinutelyStatsWithDay(FindServer5MinutelyStatsWithDayRequest) returns (FindServer5MinutelyStatsWithDayResponse);
 | 
			
		||||
 | 
			
		||||
	// 按日读取统计数据
 | 
			
		||||
	// 读取最近N日的统计数据
 | 
			
		||||
	rpc findLatestServerDailyStats (FindLatestServerDailyStatsRequest) returns (FindLatestServerDailyStatsResponse);
 | 
			
		||||
 | 
			
		||||
	// 读取日期段内的流量数据
 | 
			
		||||
	rpc findServerDailyStatsBetweenDays (FindServerDailyStatsBetweenDaysRequest) returns (FindServerDailyStatsBetweenDaysResponse);
 | 
			
		||||
 | 
			
		||||
	// 查找单个服务当前时刻(N分钟内)统计数据
 | 
			
		||||
	rpc sumCurrentServerDailyStats(SumCurrentServerDailyStatsRequest) returns (SumCurrentServerDailyStatsResponse);
 | 
			
		||||
 | 
			
		||||
@@ -109,7 +112,7 @@ message FindServer5MinutelyStatsWithDayResponse {
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 按日读取统计数据
 | 
			
		||||
// 读取最近N日的统计数据
 | 
			
		||||
message FindLatestServerDailyStatsRequest {
 | 
			
		||||
	int64 serverId = 1;
 | 
			
		||||
	int32 days = 2; // 天数
 | 
			
		||||
@@ -127,6 +130,29 @@ message FindLatestServerDailyStatsResponse {
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 读取日期段内的流量数据
 | 
			
		||||
message FindServerDailyStatsBetweenDaysRequest {
 | 
			
		||||
	int64 userId = 1; // 用户ID,和服务ID二选一
 | 
			
		||||
	int64 serverId = 2; // 服务ID,和用户ID二选一
 | 
			
		||||
	string dayFrom = 3; // 开始日期 YYYYMMDD
 | 
			
		||||
	string dayTo = 4; // 结束日期 YYYYMMDD
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message FindServerDailyStatsBetweenDaysResponse {
 | 
			
		||||
	repeated Stat stats = 1;
 | 
			
		||||
 | 
			
		||||
	message Stat {
 | 
			
		||||
		string day = 1;
 | 
			
		||||
		string timeFrom = 2;
 | 
			
		||||
		string timeTo = 3;
 | 
			
		||||
		string timeAt = 4;
 | 
			
		||||
		int64 bytes = 5;
 | 
			
		||||
		int64 cachedBytes = 6;
 | 
			
		||||
		int64 countRequests = 7;
 | 
			
		||||
		int64 countCachedRequests = 8;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 查找单个服务当前时刻(N分钟内)统计数据
 | 
			
		||||
message SumCurrentServerDailyStatsRequest {
 | 
			
		||||
	int64 serverId = 1;
 | 
			
		||||
@@ -138,8 +164,12 @@ message SumCurrentServerDailyStatsResponse {
 | 
			
		||||
 | 
			
		||||
// 计算单个服务的日统计
 | 
			
		||||
message SumServerDailyStatsRequest {
 | 
			
		||||
	int64 userId = 3;
 | 
			
		||||
	int64 serverId = 1;
 | 
			
		||||
	string day = 2; // YYYYMMDD
 | 
			
		||||
 | 
			
		||||
	string dayFrom = 4; // day 和 dayFrom+dayTo 二选一, YYYYMMDD
 | 
			
		||||
	string dayTo = 5; // day 和 dayFrom+dayTo 二选一,YYYYMMDD
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message SumServerDailyStatsResponse {
 | 
			
		||||
 
 | 
			
		||||
@@ -49,6 +49,14 @@ func (this *ServerNameConfig) FirstName() string {
 | 
			
		||||
	return ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Count 计算域名数量
 | 
			
		||||
func (this *ServerNameConfig) Count() int {
 | 
			
		||||
	if len(this.SubNames) > 0 {
 | 
			
		||||
		return len(this.SubNames)
 | 
			
		||||
	}
 | 
			
		||||
	return 1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NormalizeServerNames 格式化一组域名
 | 
			
		||||
func NormalizeServerNames(serverNames []*ServerNameConfig) {
 | 
			
		||||
	for _, serverName := range serverNames {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user