Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶ added in v1.2.0
type Alert struct { g.Meta `orm:"table:alert, do:true"` Id interface{} // 主键 GroupKey interface{} // key identifying the group of alerts (e.g. to deduplicate) Status interface{} // resolved|firing ExternalUrl interface{} // alertmanager连接 Labels interface{} // 告警labels Annotations interface{} // 告警annotations StartsAt *gtime.Time // 告警开始时间 EndsAt *gtime.Time // 告警结束时间 GeneratorUrl interface{} // 触发告警连接 Fingerprint interface{} // 告警指纹 CreateTime *gtime.Time // 创建时间 }
Alert is the golang structure of table alert for DAO operations like Where/Data.
type Config ¶ added in v1.1.0
type Config struct { g.Meta `orm:"table:config, do:true"` Id interface{} // 主键 Name interface{} // 配置名称 Value interface{} // 配置内容 }
Config is the golang structure of table config for DAO operations like Where/Data.
type Group ¶
type Group struct { g.Meta `orm:"table:group, do:true"` Id interface{} // 主键 Name interface{} // 分组名称 Identification interface{} // 英文标识 CreateTime *gtime.Time // 创建时间 }
Group is the golang structure of table group for DAO operations like Where/Data.
type Node ¶
type Node struct { g.Meta `orm:"table:node, do:true"` Id interface{} // 主键 Alias interface{} // 监控项别名 Host interface{} // 主机地址 IP或者域名 Port interface{} // exporter对应的端口号 Owner interface{} // 所有者/责任人 JobName interface{} // prometheus job_name Group interface{} // 组名 Labels interface{} // 标签 对应 prometheus中的label配置选项 CreateTime *gtime.Time // 创建时间 Active interface{} // 是否启用 }
Node is the golang structure of table node for DAO operations like Where/Data.
type Rules ¶ added in v1.1.0
type Rules struct { g.Meta `orm:"table:rules, do:true"` Id interface{} // 主键 GroupName interface{} // 规则组名称 Type interface{} // 规则类型 alert record Content interface{} // 规则内容 Active interface{} // 是否启用 CreateTime *gtime.Time // 创建时间 }
Rules is the golang structure of table rules for DAO operations like Where/Data.
type User ¶
type User struct { g.Meta `orm:"table:user, do:true"` Id interface{} // 主键 Name interface{} // 用户名 LoginName interface{} // 登录名 Password interface{} // 登录密码,MD5加密 CreateTime *gtime.Time // 创建时间 Email interface{} // 邮箱 PhoneNumber interface{} // 手机号码 }
User is the golang structure of table user for DAO operations like Where/Data.
Click to show internal directories.
Click to hide internal directories.