This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 88105b45 [horus] database pod table formatting (#394)
88105b45 is described below
commit 88105b45d498ab658910c1228a1b4b035d63aaff
Author: mfordjody <[email protected]>
AuthorDate: Sat Sep 28 08:22:11 2024 +0800
[horus] database pod table formatting (#394)
---
app/horus/basic/db/db.go | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/app/horus/basic/db/db.go b/app/horus/basic/db/db.go
index c4d1950e..50e95242 100644
--- a/app/horus/basic/db/db.go
+++ b/app/horus/basic/db/db.go
@@ -44,20 +44,19 @@ type NodeDataInfo struct {
type PodDataInfo struct {
Id int64 `json:"id"`
- PodName string `json:"podName"`
- PodIP string `json:"podIP"`
+ PodName string `json:"pod_name" xorm:"pod_name"`
+ PodIP string `json:"pod_ip" xorm:"pod_ip"`
Sn string `json:"sn"`
- NodeName string `json:"nodeName"`
- ClusterName string `json:"clusterName"`
- ModuleName string `json:"moduleName"`
+ NodeName string `json:"node_name" xorm:"node_name"`
+ ClusterName string `json:"cluster_name" xorm:"cluster_name"`
+ ModuleName string `json:"module_name" xorm:"module_name"`
Reason string `json:"reason"`
Restart int32 `json:"restart"`
Repair int32 `json:"repair"`
- RepairTicketUrl string `json:"repairTicketUrl"`
- FirstDate string `json:"firstDate"`
- LastDate string `json:"lastDate"`
- CreateTime string `json:"createTime"`
- UpdateTime string `json:"updateTime"`
+ RepairTicketUrl string `json:"repair_ticket_url"
xorm:"repair_ticket_url"`
+ FirstDate string `json:"first_date" xorm:"first_date"`
+ CreateTime string `json:"create_time" xorm:"create_time created"`
+ UpdateTime string `json:"update_time" xorm:"update_time updated"`
}
var (