[agent-go] [status] - test for connect

This commit is contained in:
zeaslity
2023-04-23 16:37:07 +08:00
parent c5143d2d59
commit 9a676b5087
8 changed files with 119 additions and 7 deletions

View File

@@ -8,6 +8,19 @@ import (
var log = logger2.Log
type StatusMessage struct {
/**
* which kind of status should be return
* metric => short time message
* all => all agent status message
* healthy => check for healthy
* */
Type string `json:"type,omitempty"`
AgentTopicName string `json:"agent_topic_name,omitempty"`
MetricRepeatCount int `json:"metric_repeat_count,omitempty"`
metricRepeatPinch int `json:"metric_repeat_pinch,omitempty"`
}
type AgentStatus struct {
CPUStatus *CPUStatus
MemoryStatus *MemoryStatus