mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
package stats
 | 
						|
 | 
						|
// ServerDomainHourlyStat 服务域名统计
 | 
						|
type ServerDomainHourlyStat struct {
 | 
						|
	Id                  uint64 `field:"id"`                  // ID
 | 
						|
	ClusterId           uint32 `field:"clusterId"`           // 集群ID
 | 
						|
	NodeId              uint32 `field:"nodeId"`              // 节点ID
 | 
						|
	ServerId            uint32 `field:"serverId"`            // 服务ID
 | 
						|
	Domain              string `field:"domain"`              // 域名
 | 
						|
	Hour                string `field:"hour"`                // YYYYMMDDHH
 | 
						|
	Bytes               uint64 `field:"bytes"`               // 流量
 | 
						|
	CachedBytes         uint64 `field:"cachedBytes"`         // 缓存流量
 | 
						|
	CountRequests       uint64 `field:"countRequests"`       // 请求数
 | 
						|
	CountCachedRequests uint64 `field:"countCachedRequests"` // 缓存请求
 | 
						|
	CountAttackRequests uint64 `field:"countAttackRequests"` // 攻击请求数
 | 
						|
	AttackBytes         uint64 `field:"attackBytes"`         // 攻击流量
 | 
						|
}
 | 
						|
 | 
						|
type ServerDomainHourlyStatOperator struct {
 | 
						|
	Id                  interface{} // ID
 | 
						|
	ClusterId           interface{} // 集群ID
 | 
						|
	NodeId              interface{} // 节点ID
 | 
						|
	ServerId            interface{} // 服务ID
 | 
						|
	Domain              interface{} // 域名
 | 
						|
	Hour                interface{} // YYYYMMDDHH
 | 
						|
	Bytes               interface{} // 流量
 | 
						|
	CachedBytes         interface{} // 缓存流量
 | 
						|
	CountRequests       interface{} // 请求数
 | 
						|
	CountCachedRequests interface{} // 缓存请求
 | 
						|
	CountAttackRequests interface{} // 攻击请求数
 | 
						|
	AttackBytes         interface{} // 攻击流量
 | 
						|
}
 | 
						|
 | 
						|
func NewServerDomainHourlyStatOperator() *ServerDomainHourlyStatOperator {
 | 
						|
	return &ServerDomainHourlyStatOperator{}
 | 
						|
}
 |