Documentation
¶
Rendered for darwin/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHostinfoPlugin ¶
Types ¶
type HostInfoData ¶
type HostInfoData struct {
System string `json:"id"`
Distro string `json:"distro"`
KernelVersion string `json:"kernel_version"`
HostType string `json:"host_type"`
CpuName string `json:"cpu_name"`
// Number of cores within a single CPU
// It is shown as 'coreCount' in New Relic UI
CpuNum string `json:"cpu_num"`
// Total number of cores in all the CPUs
// It is shown as 'processorCount' in New Relic UI
TotalCpu string `json:"total_cpu"`
Ram string `json:"ram"`
UpSince string `json:"boot_timestamp"`
AgentVersion string `json:"agent_version"`
AgentName string `json:"agent_name"`
AgentMode string `json:"agent_mode"`
OperatingSystem string `json:"operating_system"`
ProductUuid string `json:"product_uuid"`
RegionAWS string `json:"aws_region,omitempty"`
RegionAzure string `json:"region_name,omitempty"`
RegionGCP string `json:"zone,omitempty"`
RegionAlibaba string `json:"region_id,omitempty"`
AWSAccountID string `json:"aws_account_id,omitempty"`
AWSAvailabilityZone string `json:"aws_availability_zone,omitempty"`
AWSImageID string `json:"aws_image_id,omitempty"`
}
HostInfoData is the structure returned to the backend by HostinfoPlugin.
func (*HostInfoData) SortKey ¶
func (hip *HostInfoData) SortKey() string
type HostinfoPlugin ¶
type HostinfoPlugin struct {
agent.PluginCommon
// contains filtered or unexported fields
}
HostinfoPlugin returns metadata of the host.
func (*HostinfoPlugin) Data ¶
func (hip *HostinfoPlugin) Data() agent.PluginInventoryDataset
Data collects the hostinfo.
Click to show internal directories.
Click to hide internal directories.