区域监控可以上传监控数据

This commit is contained in:
GoEdgeLab
2021-09-06 09:16:41 +08:00
parent 921493f49b
commit 72826efbd1
7 changed files with 1128 additions and 68 deletions

View File

@@ -0,0 +1,23 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package reporterconfigs
type TaskType = string
const (
TaskTypeIPAddr TaskType = "ipAddr"
)
type IPTask struct {
AddrId int64 `json:"addrId"`
IP string `json:"ip"`
Port int `json:"port"`
}
func FindTaskTypeName(taskType TaskType) string {
switch taskType {
case TaskTypeIPAddr:
return "IP地址"
}
return ""
}