@@ -166,50 +166,51 @@ func (AZAnalyzerConnection) TableName() string {
166166}
167167
168168type VTap struct {
169- ID int `gorm:"primaryKey;column:id;type:int;not null" json:"ID"`
170- Name string `gorm:"column:name;type:varchar(256);not null" json:"NAME"`
171- RawHostname string `gorm:"column:raw_hostname;type:varchar(256);" json:"RAW_HOSTNAME"`
172- Owner string `gorm:"column:owner;type:varchar(64);default:''" json:"OWNER"`
173- State int `gorm:"column:state;type:int;default:1" json:"STATE"` // 0.not-connected 1.normal
174- Enable int `gorm:"column:enable;type:int;default:1" json:"ENABLE"` // 0: stop 1: running
175- Type int `gorm:"column:type;type:int;default:0" json:"TYPE"` // 1: process 2: vm 3: public cloud 4: analyzer 5: physical machine 6: dedicated physical machine 7: host pod 8: vm pod
176- CtrlIP string `gorm:"column:ctrl_ip;type:char(64);not null" json:"CTRL_IP"`
177- CtrlMac string `gorm:"column:ctrl_mac;type:char(64);default:null" json:"CTRL_MAC"`
178- TapMac string `gorm:"column:tap_mac;type:char(64);default:null" json:"TAP_MAC"`
179- AnalyzerIP string `gorm:"column:analyzer_ip;type:char(64);not null" json:"ANALYZER_IP"`
180- CurAnalyzerIP string `gorm:"column:cur_analyzer_ip;type:char(64);not null" json:"CUR_ANALYZER_IP"`
181- ControllerIP string `gorm:"column:controller_ip;type:char(64);not null" json:"CONTROLLER_IP"`
182- CurControllerIP string `gorm:"column:cur_controller_ip;type:char(64);not null" json:"CUR_CONTROLLER_IP"`
183- LaunchServer string `gorm:"column:launch_server;type:char(64);not null" json:"LAUNCH_SERVER"`
184- LaunchServerID int `gorm:"column:launch_server_id;type:int;default:null" json:"LAUNCH_SERVER_ID"`
185- AZ string `gorm:"column:az;type:char(64);default:''" json:"AZ"`
186- Region string `gorm:"column:region;type:char(64);default:''" json:"REGION"`
187- Revision string `gorm:"column:revision;type:varchar(256);default:null" json:"REVISION"`
188- SyncedControllerAt time.Time `gorm:"column:synced_controller_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"SYNCED_CONTROLLER_AT"`
189- SyncedAnalyzerAt time.Time `gorm:"column:synced_analyzer_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"SYNCED_ANALYZER_AT"`
190- CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"CREATED_AT"`
191- BootTime int `gorm:"column:boot_time;type:int;default:0" json:"BOOT_TIME"`
192- Exceptions int64 `gorm:"column:exceptions;type:bigint unsigned;default:0" json:"EXCEPTIONS"`
193- VTapLcuuid string `gorm:"column:vtap_lcuuid;type:char(64);default:null" json:"VTAP_LCUUID"`
194- VtapGroupLcuuid string `gorm:"column:vtap_group_lcuuid;type:char(64);default:null" json:"VTAP_GROUP_LCUUID"`
195- CPUNum int `gorm:"column:cpu_num;type:int;default:0" json:"CPU_NUM"` // logical number of cpu
196- MemorySize int64 `gorm:"column:memory_size;type:bigint;default:0" json:"MEMORY_SIZE"`
197- GRPCBufferSize uint64 `gorm:"column:grpc_buffer_size;type:bigint;default:0" json:"GRPC_BUFFER_SIZE"`
198- Arch string `gorm:"column:arch;type:varchar(256);default:null" json:"ARCH"`
199- Os string `gorm:"column:os;type:varchar(256);default:null" json:"OS"`
200- KernelVersion string `gorm:"column:kernel_version;type:varchar(256);default:null" json:"KERNEL_VERSION"`
201- ProcessName string `gorm:"column:process_name;type:varchar(256);default:null" json:"PROCESS_NAME"`
202- CurrentK8sImage string `gorm:"column:current_k8s_image;type:varchar(512);default:null" json:"CURRENT_K8S_IMAGE"`
203- LicenseType int `gorm:"column:license_type;type:int;default:null" json:"LICENSE_TYPE"` // 1: A类 2: B类 3: C类
204- LicenseFunctions string `gorm:"column:license_functions;type:char(64)" json:"LICENSE_FUNCTIONS"` // separated by ,; 1: 流量分发 2: 网络监控 3: 应用监控
205- EnableFeatures string `gorm:"column:enable_features;type:char(64)" json:"ENABLE_FEATURES"` // separated by ,
206- DisableFeatures string `gorm:"column:disable_features;type:char(64)" json:"DISABLE_FEATURES"` // separated by ,
207- FollowGroupFeatures string `gorm:"column:follow_group_features;type:char(64)" json:"FOLLOW_GROUP_FEATURES"` // separated by ,
208- TapMode int `gorm:"column:tap_mode;type:int;default:null" json:"TAP_MODE"`
209- ExpectedRevision string `gorm:"column:expected_revision;type:text;default null" json:"EXPECTED_REVISION"`
210- UpgradePackage string `gorm:"column:upgrade_package;type:text;default null" json:"UPGRADE_PACKAGE"`
211- TeamID int `gorm:"column:team_id;type:int;default:0" json:"TEAM_ID"`
212- Lcuuid string `gorm:"column:lcuuid;type:char(64);not null" json:"LCUUID"`
169+ ID int `gorm:"primaryKey;column:id;type:int;not null" json:"ID"`
170+ Name string `gorm:"column:name;type:varchar(256);not null" json:"NAME"`
171+ RawHostname string `gorm:"column:raw_hostname;type:varchar(256);" json:"RAW_HOSTNAME"`
172+ Owner string `gorm:"column:owner;type:varchar(64);default:''" json:"OWNER"`
173+ State int `gorm:"column:state;type:int;default:1" json:"STATE"` // 0.not-connected 1.normal
174+ Enable int `gorm:"column:enable;type:int;default:1" json:"ENABLE"` // 0: stop 1: running
175+ Type int `gorm:"column:type;type:int;default:0" json:"TYPE"` // 1: process 2: vm 3: public cloud 4: analyzer 5: physical machine 6: dedicated physical machine 7: host pod 8: vm pod
176+ CtrlIP string `gorm:"column:ctrl_ip;type:char(64);not null" json:"CTRL_IP"`
177+ CtrlMac string `gorm:"column:ctrl_mac;type:char(64);default:null" json:"CTRL_MAC"`
178+ TapMac string `gorm:"column:tap_mac;type:char(64);default:null" json:"TAP_MAC"`
179+ AnalyzerIP string `gorm:"column:analyzer_ip;type:char(64);not null" json:"ANALYZER_IP"`
180+ CurAnalyzerIP string `gorm:"column:cur_analyzer_ip;type:char(64);not null" json:"CUR_ANALYZER_IP"`
181+ ControllerIP string `gorm:"column:controller_ip;type:char(64);not null" json:"CONTROLLER_IP"`
182+ CurControllerIP string `gorm:"column:cur_controller_ip;type:char(64);not null" json:"CUR_CONTROLLER_IP"`
183+ LaunchServer string `gorm:"column:launch_server;type:char(64);not null" json:"LAUNCH_SERVER"`
184+ LaunchServerID int `gorm:"column:launch_server_id;type:int;default:null" json:"LAUNCH_SERVER_ID"`
185+ AZ string `gorm:"column:az;type:char(64);default:''" json:"AZ"`
186+ Region string `gorm:"column:region;type:char(64);default:''" json:"REGION"`
187+ Revision string `gorm:"column:revision;type:varchar(256);default:null" json:"REVISION"`
188+ SyncedControllerAt time.Time `gorm:"column:synced_controller_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"SYNCED_CONTROLLER_AT"`
189+ SyncedAnalyzerAt time.Time `gorm:"column:synced_analyzer_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"SYNCED_ANALYZER_AT"`
190+ CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"CREATED_AT"`
191+ BootTime int `gorm:"column:boot_time;type:int;default:0" json:"BOOT_TIME"`
192+ Exceptions int64 `gorm:"column:exceptions;type:bigint unsigned;default:0" json:"EXCEPTIONS"`
193+ ExceptionDescription string `gorm:"column:exception_description;type:varchar(256);default:''" json:"EXCEPTION_DESCRIPTION"`
194+ VTapLcuuid string `gorm:"column:vtap_lcuuid;type:char(64);default:null" json:"VTAP_LCUUID"`
195+ VtapGroupLcuuid string `gorm:"column:vtap_group_lcuuid;type:char(64);default:null" json:"VTAP_GROUP_LCUUID"`
196+ CPUNum int `gorm:"column:cpu_num;type:int;default:0" json:"CPU_NUM"` // logical number of cpu
197+ MemorySize int64 `gorm:"column:memory_size;type:bigint;default:0" json:"MEMORY_SIZE"`
198+ GRPCBufferSize uint64 `gorm:"column:grpc_buffer_size;type:bigint;default:0" json:"GRPC_BUFFER_SIZE"`
199+ Arch string `gorm:"column:arch;type:varchar(256);default:null" json:"ARCH"`
200+ Os string `gorm:"column:os;type:varchar(256);default:null" json:"OS"`
201+ KernelVersion string `gorm:"column:kernel_version;type:varchar(256);default:null" json:"KERNEL_VERSION"`
202+ ProcessName string `gorm:"column:process_name;type:varchar(256);default:null" json:"PROCESS_NAME"`
203+ CurrentK8sImage string `gorm:"column:current_k8s_image;type:varchar(512);default:null" json:"CURRENT_K8S_IMAGE"`
204+ LicenseType int `gorm:"column:license_type;type:int;default:null" json:"LICENSE_TYPE"` // 1: A类 2: B类 3: C类
205+ LicenseFunctions string `gorm:"column:license_functions;type:char(64)" json:"LICENSE_FUNCTIONS"` // separated by ,; 1: 流量分发 2: 网络监控 3: 应用监控
206+ EnableFeatures string `gorm:"column:enable_features;type:char(64)" json:"ENABLE_FEATURES"` // separated by ,
207+ DisableFeatures string `gorm:"column:disable_features;type:char(64)" json:"DISABLE_FEATURES"` // separated by ,
208+ FollowGroupFeatures string `gorm:"column:follow_group_features;type:char(64)" json:"FOLLOW_GROUP_FEATURES"` // separated by ,
209+ TapMode int `gorm:"column:tap_mode;type:int;default:null" json:"TAP_MODE"`
210+ ExpectedRevision string `gorm:"column:expected_revision;type:text;default null" json:"EXPECTED_REVISION"`
211+ UpgradePackage string `gorm:"column:upgrade_package;type:text;default null" json:"UPGRADE_PACKAGE"`
212+ TeamID int `gorm:"column:team_id;type:int;default:0" json:"TEAM_ID"`
213+ Lcuuid string `gorm:"column:lcuuid;type:char(64);not null" json:"LCUUID"`
213214}
214215
215216func (VTap ) TableName () string {
0 commit comments