Skip to content

Commit 64c2916

Browse files
xiaochaoren1SongZhen0704
authored andcommitted
feat: tagrecorder custom service renaming
1 parent a2e3ca8 commit 64c2916

3 files changed

Lines changed: 25 additions & 25 deletions

File tree

server/controller/common/resource_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const (
7171
RESOURCE_TYPE_ALL_IP_EN = "all_ip"
7272
RESOURCE_TYPE_LB_RULE_EN = "lb_rule"
7373

74-
RESOURCE_TYPE_CUSTOM_SERVICE_EN = "custom_service"
74+
RESOURCE_TYPE_CUSTOM_SERVICE_EN = "biz_service"
7575

7676
// used for gprocess_id of process in id manager
7777
RESOURCE_TYPE_GPROCESS_EN = "gprocess"

server/controller/tagrecorder/const.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const (
5656
RESOURCE_TYPE_POD_INGRESS = "pod_ingress"
5757
RESOURCE_TYPE_SERVICE = "service"
5858
RESOURCE_TYPE_GPROCESS = "gprocess"
59-
RESOURCE_TYPE_CUSTOM_SERVICE = "custom_service"
59+
RESOURCE_TYPE_CUSTOM_SERVICE = "biz_service"
6060
)
6161

6262
// Scheduled tasks
@@ -568,28 +568,28 @@ const (
568568
)
569569

570570
var DBNodeTypeToResourceType = map[string]string{ // TODO optimize const define
571-
"region": RESOURCE_TYPE_REGION,
572-
"az": RESOURCE_TYPE_AZ,
573-
"host": RESOURCE_TYPE_HOST,
574-
"l3_epc": RESOURCE_TYPE_VPC,
575-
"subnet": RESOURCE_TYPE_VL2,
576-
"vm": RESOURCE_TYPE_VM,
577-
"router": RESOURCE_TYPE_VGW,
578-
"dhcp_port": RESOURCE_TYPE_DHCP_PORT,
579-
"nat_gateway": RESOURCE_TYPE_NAT_GATEWAY,
580-
"lb": RESOURCE_TYPE_LB,
581-
"redis": RESOURCE_TYPE_REDIS,
582-
"rds": RESOURCE_TYPE_RDS,
583-
"pod_cluster": RESOURCE_TYPE_POD_CLUSTER,
584-
"pod_node": RESOURCE_TYPE_POD_NODE,
585-
"pod_ns": RESOURCE_TYPE_POD_NAMESPACE,
586-
"pod_group": RESOURCE_TYPE_POD_GROUP,
587-
"pod_service": RESOURCE_TYPE_POD_SERVICE,
588-
"pod": RESOURCE_TYPE_POD,
589-
"ip": RESOURCE_TYPE_IP,
590-
"internet": RESOURCE_TYPE_INTERNET,
591-
"gprocess": RESOURCE_TYPE_GPROCESS,
592-
"custom_service": RESOURCE_TYPE_CUSTOM_SERVICE,
571+
"region": RESOURCE_TYPE_REGION,
572+
"az": RESOURCE_TYPE_AZ,
573+
"host": RESOURCE_TYPE_HOST,
574+
"l3_epc": RESOURCE_TYPE_VPC,
575+
"subnet": RESOURCE_TYPE_VL2,
576+
"vm": RESOURCE_TYPE_VM,
577+
"router": RESOURCE_TYPE_VGW,
578+
"dhcp_port": RESOURCE_TYPE_DHCP_PORT,
579+
"nat_gateway": RESOURCE_TYPE_NAT_GATEWAY,
580+
"lb": RESOURCE_TYPE_LB,
581+
"redis": RESOURCE_TYPE_REDIS,
582+
"rds": RESOURCE_TYPE_RDS,
583+
"pod_cluster": RESOURCE_TYPE_POD_CLUSTER,
584+
"pod_node": RESOURCE_TYPE_POD_NODE,
585+
"pod_ns": RESOURCE_TYPE_POD_NAMESPACE,
586+
"pod_group": RESOURCE_TYPE_POD_GROUP,
587+
"pod_service": RESOURCE_TYPE_POD_SERVICE,
588+
"pod": RESOURCE_TYPE_POD,
589+
"ip": RESOURCE_TYPE_IP,
590+
"internet": RESOURCE_TYPE_INTERNET,
591+
"gprocess": RESOURCE_TYPE_GPROCESS,
592+
"biz_service": RESOURCE_TYPE_CUSTOM_SERVICE,
593593
}
594594

595595
var CREATE_SQL_MAP = map[string]string{

server/querier/engine/clickhouse/tag/const.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var AutoServiceMap = map[string]int{
8686
"daemon_set": VIF_DEVICE_TYPE_POD_GROUP_DAEMON_SET,
8787
"replica_set_controller": VIF_DEVICE_TYPE_POD_GROUP_REPLICASET_CONTROLLER,
8888
"clone_set": VIF_DEVICE_TYPE_POD_GROUP_CLONESET,
89-
"custom_service": VIF_DEVICE_TYPE_CUSTOM_SERVICE,
89+
"biz_service": VIF_DEVICE_TYPE_CUSTOM_SERVICE,
9090
}
9191

9292
var PodGroupTypeSlice = []string{

0 commit comments

Comments
 (0)