17 Star 5 Fork 15

openEuler/PilotGo-plugin-topology

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
meta.go 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
wubijie 提交于 2024-11-28 10:58 +08:00 . add copyright information
/*
* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved.
* PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2.
* See LICENSE file for more details.
* Author: Wangjunqi123 <wangjunqi@kylinos.cn>
* Date: Mon Nov 4 14:30:13 2024 +0800
*/
package mysqlmanager
const (
FILTER_TYPE_HOST = "host"
FILTER_TYPE_PROCESS = "process"
FILTER_TYPE_RESOURCE = "resource"
FILTER_TYPE_TAG = "tag"
)
type Topo_configuration struct {
ID uint `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
Name string `gorm:"not null;type:varchar(200)" json:"conf_name"`
Version string `gorm:"not null;type:varchar(20)" json:"conf_version"`
Description string `gorm:"type:text" json:"description"`
CreatedAt string `gorm:"not null" json:"create_time"`
UpdatedAt string `gorm:"not null" json:"update_time"`
Preserve uint `gorm:"not null" json:"preserve"`
BatchId uint `gorm:"not null" json:"batchId"`
NodeRules [][]Filter_rule `gorm:"type:text" json:"node_rules"`
TagRules []Tag_rule `gorm:"type:text" json:"tag_rules"`
NodeCoordinate []map[string]map[string]float32 `gorm:"type:text" json:"node_coordi"`
}
type Topo_configuration_DB struct {
ID uint `gorm:"primary_key;AUTO_INCREMENT" json:"id"`
Name string `gorm:"not null;type:varchar(200)" json:"conf_name"`
Version string `gorm:"not null;type:varchar(20)" json:"conf_version"`
Description string `gorm:"type:text" json:"description"`
CreatedAt string `gorm:"not null" json:"create_time"`
UpdatedAt string `gorm:"not null" json:"update_time"`
Preserve uint `gorm:"not null" json:"preserve"`
BatchId uint `gorm:"not null" json:"batchId"`
NodeRules string `gorm:"type:text" json:"node_rules"`
TagRules string `gorm:"type:text" json:"tag_rules"`
NodeCoordinate string `gorm:"type:text" json:"node_coordinate"`
}
type Filter_rule struct {
Rule_type string `json:"rule_type"`
Rule_condition map[string]interface{} `json:"rule_condition"`
}
type Tag_rule struct {
Tag_name string `json:"tag_name"`
Target string `json:"target"`
Rules [][]Filter_rule `json:"rules"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/PilotGo-plugin-topology.git
git@gitee.com:openeuler/PilotGo-plugin-topology.git
openeuler
PilotGo-plugin-topology
PilotGo-plugin-topology
d8282c0a164a

搜索帮助