Documentation ¶
Overview ¶
Package gohai encapsulate all the metadata collected by it's subpackage into a single payload ready to be ingested by the backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPayloadAsString ¶ added in v0.50.0
GetPayloadAsString marshals the gohai struct twice (to a string). This allows the gohai payload to be embedded as a string in a JSON. This is required to mimic the metadata format inherited from Agent v5.
Types ¶
type Payload ¶
type Payload struct {
Gohai *gohai `json:"gohai"`
}
Payload handles the JSON unmarshalling of the metadata payload
func GetPayload ¶
GetPayload builds a payload of every metadata collected with gohai except processes metadata.
func GetPayloadWithProcesses ¶ added in v0.50.0
GetPayloadWithProcesses builds a pyaload of all metdata including processes
Directories ¶
Path | Synopsis |
---|---|
Package cpu regroups collecting information about the CPU
|
Package cpu regroups collecting information about the CPU |
Package filesystem returns information about available filesystems.
|
Package filesystem returns information about available filesystems. |
Package memory regroups collecting information about the memory
|
Package memory regroups collecting information about the memory |
Package network regroups collecting information about the network interfaces
|
Package network regroups collecting information about the network interfaces |
Package platform regroups collecting information about the platform
|
Package platform regroups collecting information about the platform |
Package processes regroups collecting information about running processes.
|
Package processes regroups collecting information about running processes. |
gops
Package gops extracts the information on running processes from gopsutil
|
Package gops extracts the information on running processes from gopsutil |
Package utils provides various helper functions used in the library.
|
Package utils provides various helper functions used in the library. |
Click to show internal directories.
Click to hide internal directories.