提供基本的监控API

This commit is contained in:
GoEdgeLab
2021-04-29 16:48:27 +08:00
parent 1137dca5e2
commit 1d43ad2e22
6 changed files with 696 additions and 45 deletions

View File

@@ -0,0 +1,21 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package nodeconfigs
type NodeValueItem = string
const (
NodeValueItemCPU NodeValueItem = "cpu" // CPU
NodeValueItemMemory NodeValueItem = "memory" // 内存
NodeValueItemLoad NodeValueItem = "load" // 负载
NodeValueItemTrafficIn NodeValueItem = "trafficIn" // 上行流量
NodeValueItemTrafficOut NodeValueItem = "trafficOut" // 下行流量
NodeValueItemConnections NodeValueItem = "connections" // 连接数
NodeValueItemDisk NodeValueItem = "disk" // 磁盘
)
type NodeValueRange = string
const (
NodeValueRangeMinute NodeValueRange = "minute"
)