mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 23:20:26 +08:00
41 lines
1.6 KiB
Go
41 lines
1.6 KiB
Go
package models
|
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
// MetricChart 指标图表
|
|
type MetricChart struct {
|
|
Id uint32 `field:"id"` // ID
|
|
ItemId uint32 `field:"itemId"` // 指标ID
|
|
Name string `field:"name"` // 名称
|
|
Code string `field:"code"` // 代号
|
|
Type string `field:"type"` // 图形类型
|
|
WidthDiv int32 `field:"widthDiv"` // 宽度划分
|
|
Params dbs.JSON `field:"params"` // 图形参数
|
|
Order uint32 `field:"order"` // 排序
|
|
IsOn bool `field:"isOn"` // 是否启用
|
|
State uint8 `field:"state"` // 状态
|
|
MaxItems uint32 `field:"maxItems"` // 最多条目
|
|
IgnoreEmptyKeys uint8 `field:"ignoreEmptyKeys"` // 忽略空的键值
|
|
IgnoredKeys dbs.JSON `field:"ignoredKeys"` // 忽略键值
|
|
}
|
|
|
|
type MetricChartOperator struct {
|
|
Id interface{} // ID
|
|
ItemId interface{} // 指标ID
|
|
Name interface{} // 名称
|
|
Code interface{} // 代号
|
|
Type interface{} // 图形类型
|
|
WidthDiv interface{} // 宽度划分
|
|
Params interface{} // 图形参数
|
|
Order interface{} // 排序
|
|
IsOn interface{} // 是否启用
|
|
State interface{} // 状态
|
|
MaxItems interface{} // 最多条目
|
|
IgnoreEmptyKeys interface{} // 忽略空的键值
|
|
IgnoredKeys interface{} // 忽略键值
|
|
}
|
|
|
|
func NewMetricChartOperator() *MetricChartOperator {
|
|
return &MetricChartOperator{}
|
|
}
|