darwin

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHostinfoPlugin

func NewHostinfoPlugin(ctx agent.AgentContext, cloudHarvester cloud.Harvester) agent.Plugin

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

Data collects the hostinfo.

func (*HostinfoPlugin) Run

func (hip *HostinfoPlugin) Run()

Run the HostinfoPlugin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL