[ Cmii ] [ Octopus ] - 优化项目结构

This commit is contained in:
zeaslity
2024-03-19 16:04:09 +08:00
committed by zeaslity
parent 4ca8d77e74
commit 6b4616690c
80 changed files with 979 additions and 1025 deletions

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"testing"
"wdd.io/agent-go/utils"
"wdd.io/agent-common/utils"
)
func TestGetDiskStatus(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package status
import (
"github.com/shirou/gopsutil/v3/docker"
"strings"
"wdd.io/agent-go/utils"
"wdd.io/agent-common/utils"
)
type DockerMetric struct {

View File

@@ -2,7 +2,7 @@ package status
import (
"testing"
"wdd.io/agent-go/utils"
"wdd.io/agent-common/utils"
)
func TestGetHostInfo(t *testing.T) {

View File

@@ -10,7 +10,7 @@ import (
"strconv"
"strings"
"time"
"wdd.io/agent-go/utils"
"wdd.io/agent-common/utils"
)
type NetworkMetric struct {

View File

@@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"
"testing"
"wdd.io/agent-go/utils"
"wdd.io/agent-common/utils"
)
func TestMatchNetInterfaceRight(t *testing.T) {

View File

@@ -3,20 +3,20 @@ package status
import (
"fmt"
"time"
"wdd.io/agent-common/logger"
"wdd.io/agent-go/g"
logger2 "wdd.io/agent-go/logger"
)
var log = logger2.Log
var log = logger.Log
var pool = g.G.P
type StatusMessage struct {
/**
* which kind of status should be return
"PING";
* METRIC => short time message
* ALL => all agent status message
* */
* which kind of status should be return
"PING";
* METRIC => short time message
* ALL => all agent status message
* */
StatusType string `json:"statusType,omitempty"`
MetricRepeatCount int `json:"metricRepeatCount,omitempty"`
metricRepeatPinch int `json:"metricRepeatPinch,omitempty"`

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"time"
"wdd.io/agent-go/utils"
"wdd.io/agent-common/utils"
)
func TestConvertToFormat(t *testing.T) {