Skip to content

Commit

Permalink
[Tagrecorder] modify ch_device subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericsssss committed Mar 21, 2024
1 parent 623a4bb commit f6d8ab8
Show file tree
Hide file tree
Showing 5 changed files with 741 additions and 575 deletions.
6 changes: 6 additions & 0 deletions server/controller/recorder/pubsub/message/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ type HostFieldsUpdate struct {
Key
Name fieldDetail[string]
IP fieldDetail[string]
UID fieldDetail[string]
HType fieldDetail[int]
VCPUNum fieldDetail[int]
MemTotal fieldDetail[int]
Expand All @@ -210,6 +211,7 @@ type VMFieldsUpdate struct {
LaunchServer fieldDetail[string]
CloudTags fieldDetail[map[string]string]
HostID fieldDetail[int]
UID fieldDetail[string]
Hostname fieldDetail[string]
VPCID fieldDetail[int]
VPCLcuuid fieldDetail[string]
Expand Down Expand Up @@ -442,6 +444,7 @@ type NATGatewayFieldsUpdate struct {
Name fieldDetail[string]
FloatingIPs fieldDetail[string]
RegionLcuuid fieldDetail[string]
UID fieldDetail[string]
}
type NATGatewayUpdate struct {
Fields[NATGatewayFieldsUpdate]
Expand Down Expand Up @@ -473,6 +476,7 @@ type NATVMConnectionUpdate struct {
type LBFieldsUpdate struct {
Key
Name fieldDetail[string]
UID fieldDetail[string]
Model fieldDetail[int]
VIP fieldDetail[string]
RegionLcuuid fieldDetail[string]
Expand Down Expand Up @@ -553,6 +557,7 @@ type CENUpdate struct {
type RDSInstanceFieldsUpdate struct {
Key
Name fieldDetail[string]
UID fieldDetail[string]
State fieldDetail[int]
Series fieldDetail[int]
Model fieldDetail[int]
Expand All @@ -569,6 +574,7 @@ type RDSInstanceUpdate struct {
type RedisInstanceFieldsUpdate struct {
Key
Name fieldDetail[string]
UID fieldDetail[string]
State fieldDetail[int]
PublicHost fieldDetail[string]
AZLcuuid fieldDetail[string]
Expand Down
1 change: 1 addition & 0 deletions server/controller/recorder/updater/pod_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (p *PodGroup) generateUpdateInfo(diffBase *diffbase.PodGroup, cloudItem *cl
if diffBase.Name != cloudItem.Name {
mapInfo["name"] = cloudItem.Name
structInfo.Name.Set(diffBase.Name, cloudItem.Name)
structInfo.Type.SetNew(diffBase.Type, cloudItem.Type)
}
if diffBase.Type != cloudItem.Type {
mapInfo["type"] = cloudItem.Type
Expand Down
Loading

0 comments on commit f6d8ab8

Please sign in to comment.