fix: heartbeat system_data als RawMessage — Windows/beliebige Plattformen ohne Datenverlust
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package models
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
// SystemData - Alle Systemdaten die der Agent sendet
|
||||
type SystemData struct {
|
||||
AgentID string `json:"agent_id"`
|
||||
@@ -291,10 +293,10 @@ type CaddyData struct {
|
||||
|
||||
// HeartbeatRequest
|
||||
type HeartbeatRequest struct {
|
||||
AgentID string `json:"agent_id"`
|
||||
AgentVersion string `json:"agent_version,omitempty"`
|
||||
Platform string `json:"platform,omitempty"`
|
||||
SystemData SystemData `json:"system_data"`
|
||||
AgentID string `json:"agent_id"`
|
||||
AgentVersion string `json:"agent_version,omitempty"`
|
||||
Platform string `json:"platform,omitempty"`
|
||||
SystemData json.RawMessage `json:"system_data"`
|
||||
}
|
||||
|
||||
// HeartbeatResponse
|
||||
|
||||
Reference in New Issue
Block a user