mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-12 03:05:18 +08:00
增加内置的统计指标
This commit is contained in:
@@ -62,6 +62,7 @@ func (this *CreatePopupAction) RunGet(params struct {
|
||||
itemMaps = append(itemMaps, maps.Map{
|
||||
"id": item.Id,
|
||||
"name": item.Name,
|
||||
"code": item.Code,
|
||||
"isOn": item.IsOn,
|
||||
"period": item.Period,
|
||||
"periodUnit": item.PeriodUnit,
|
||||
|
||||
@@ -41,6 +41,7 @@ func (this *IndexAction) RunGet(params struct {
|
||||
itemMaps = append(itemMaps, maps.Map{
|
||||
"id": item.Id,
|
||||
"name": item.Name,
|
||||
"code": item.Code,
|
||||
"isOn": item.IsOn,
|
||||
"period": item.Period,
|
||||
"periodUnit": item.PeriodUnit,
|
||||
|
||||
@@ -48,6 +48,7 @@ func (this *IndexAction) RunGet(params struct {
|
||||
itemMaps = append(itemMaps, maps.Map{
|
||||
"id": item.Id,
|
||||
"name": item.Name,
|
||||
"code": item.Code,
|
||||
"isOn": item.IsOn,
|
||||
"period": item.Period,
|
||||
"periodUnit": item.PeriodUnit,
|
||||
|
||||
@@ -35,6 +35,7 @@ func InitItem(parent *actionutils.ParentAction, itemId int64) (*pb.MetricItem, e
|
||||
parent.Data["item"] = maps.Map{
|
||||
"id": item.Id,
|
||||
"name": item.Name,
|
||||
"code": item.Code,
|
||||
"isOn": item.IsOn,
|
||||
"keys": item.Keys,
|
||||
"value": item.Value,
|
||||
|
||||
Reference in New Issue
Block a user