Documentation
¶
Index ¶
Constants ¶
View Source
const ( SrcProbe = "probe" SrcDefault = "default" SrcConfig = "config" )
Variables ¶
View Source
var ( ErrNotImpl = fmt.Errorf("not implemented") ErrIgnore = fmt.Errorf("ignore") )
Functions ¶
Types ¶
type Data ¶
type Device ¶
type Properties ¶
type Properties struct {
Nodename Property `json:"nodename"`
FQDN Property `json:"fqdn"`
Version Property `json:"version"`
OSName Property `json:"os_name"`
OSVendor Property `json:"os_vendor"`
OSRelease Property `json:"os_release"`
OSKernel Property `json:"os_kernel"`
OSArch Property `json:"os_arch"`
MemBytes Property `json:"mem_bytes"`
MemSlots Property `json:"mem_slots"`
MemBanks Property `json:"mem_banks"`
CPUFreq Property `json:"cpu_freq"`
CPUThreads Property `json:"cpu_threads"`
CPUCores Property `json:"cpu_cores"`
CPUDies Property `json:"cpu_dies"`
CPUModel Property `json:"cpu_model"`
Serial Property `json:"serial"`
Model Property `json:"model"`
Manufacturer Property `json:"manufacturer"`
BIOSVersion Property `json:"bios_version"`
SPVersion Property `json:"sp_version"`
NodeEnv Property `json:"node_env"`
AssetEnv Property `json:"asset_env"`
ListenerPort Property `json:"listener_port"`
ClusterID Property `json:"cluster_id"`
Enclosure Property `json:"enclosure"`
TZ Property `json:"tz"`
ConnectTo Property `json:"connect_to"`
SecZone Property `json:"sec_zone"`
LastBoot Property `json:"last_boot"`
BootID Property `json:"boot_id"`
LocCountry Property `json:"loc_country"`
LocCity Property `json:"loc_city"`
LocBuilding Property `json:"loc_building"`
LocRoom Property `json:"loc_room"`
LocRack Property `json:"loc_rack"`
LocAddr Property `json:"loc_addr"`
LocFloor Property `json:"loc_floor"`
LocZIP Property `json:"loc_zip"`
TeamInteg Property `json:"team_integ"`
TeamSupport Property `json:"team_support"`
}
func (Properties) FeedMap ¶
func (t Properties) FeedMap() (map[string]Property, error)
FeedMap returns the properties to post to the collector, as a map indexed by property name. Like the v2 agent, the optional properties that are not set (source "default" or empty) are omitted so the collector keeps its value.
Click to show internal directories.
Click to hide internal directories.