Documentation
¶
Index ¶
- Constants
- type BasicInfoParams
- type CPUReport
- type ConnectionsReport
- type DiskReport
- type Event
- type GPUDetailReport
- type GPUDeviceInfo
- type LoadReport
- type NetworkReport
- type PingParams
- type PingResultParams
- type PullParams
- type RAMReport
- type RPCError
- type Report
- type ReportParams
- type Request
- type Response
Constants ¶
View Source
const ( Version = "2.0" MethodAgentReport = "agent.report" MethodAgentBasicInfo = "agent.basicInfo" MethodAgentPingResult = "agent.pingResult" MethodAgentPing = "agent.ping" MethodAgentPull = "agent.pull" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicInfoParams ¶
type ConnectionsReport ¶
type DiskReport ¶
type GPUDetailReport ¶
type GPUDetailReport struct {
Count int `json:"count"`
AverageUsage float64 `json:"average_usage"`
DetailedInfo []GPUDeviceInfo `json:"detailed_info"`
}
type GPUDeviceInfo ¶
type LoadReport ¶
type NetworkReport ¶
type PingParams ¶
type PingResultParams ¶
type PullParams ¶
type Report ¶
type Report struct {
UUID string `json:"uuid,omitempty"`
CPU CPUReport `json:"cpu"`
RAM RAMReport `json:"ram"`
Swap RAMReport `json:"swap"`
Load LoadReport `json:"load"`
Disk DiskReport `json:"disk"`
Network NetworkReport `json:"network"`
Connections ConnectionsReport `json:"connections"`
GPU *GPUDetailReport `json:"gpu,omitempty"`
Uptime int64 `json:"uptime"`
Process int `json:"process"`
Message string `json:"message"`
Method string `json:"method,omitempty"`
UpdatedAt time.Time `json:"updated_at"`
}
type ReportParams ¶
Click to show internal directories.
Click to hide internal directories.