payloads

package
v0.0.0-...-7fa8e96 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataDogIntakePayload

type DataDogIntakePayload struct {
	AgentVersion     string `json:"agentVersion"`
	UUID             string `json:"uuid"`
	OS               string `json:"os"`
	InternalHostname string `json:"internalHostname"`
	Python           string `json:"python"`
	SystemStats      struct {
		CPUCores  int      `json:"cpuCores"`
		Machine   string   `json:"machine"`
		Platform  string   `json:"platform"`
		Processor string   `json:"processor"`
		PythonV   string   `json:"pythonV"`
		MacV      []string `json:"macV"`
		NixV      []string `json:"nixV"`
		FbsdV     []string `json:"fbsdV"`
		WinV      []string `json:"winV"`
	} `json:"systemStats"`
	Meta struct {
		SocketHostname string   `json:"socket-hostname"`
		Timezones      []string `json:"timezones"`
		SocketFqdn     string   `json:"socket-fqdn"`
		Hostname       string   `json:"hostname"`
		EC2Hostname    string   `json:"ec2-hostname"`
		InstanceID     string   `json:"instance-id"`
		HostAlias      []string `json:"host_aliases"`
	} `json:"meta"`
	HostTags map[string]interface{} `json:"host-tags"`
	Tags     struct {
		System              []string `json:"system,omitempty"`
		GoogleCloudPlatform []string `json:"google cloud platform,omitempty"`
	}
	Gohai string `json:"gohai"`
	OrgID int    `json:"org-id"`
}

func (*DataDogIntakePayload) GeneratePersistentMetrics

func (i *DataDogIntakePayload) GeneratePersistentMetrics() []*schema.MetricData

type Gohai

type Gohai struct {
	CPU struct {
		CacheSize            string `json:"cache_size"`
		CPUCores             string `json:"cpu_cores"`
		CPULogicalProcessors string `json:"cpu_logical_processors"`
		Family               string `json:"family"`
		Mhz                  string `json:"mhz"`
		Model                string `json:"model"`
		ModelName            string `json:"model_name"`
		Stepping             string `json:"stepping"`
		VendorID             string `json:"vendor_id"`
	} `json:"cpu"`
	Filesystem []struct {
		MountedOn string `json:"mounted_on"`
		Name      string `json:"name"`
	}
	Network struct {
		Ipaddress   string `json:"ipaddress"`
		Ipaddressv6 string `json:"ipaddressv6"`
		Macaddress  string `json:"macaddress"`
	} `json:"network"`
	Platform struct {
		GOOARCH          string `json:"GOOARCH"`
		GOOS             string `json:"GOOS"`
		GoV              string `json:"goV"`
		HardwarePlatform string `json:"hardware_platform"`
		Hostname         string `json:"hostname"`
		KernelName       string `json:"kernel_name"`
		KernelRelease    string `json:"kernel_release"`
		KernelVersion    string `json:"kernel_version"`
		Machine          string `json:"machine"`
		Os               string `json:"os"`
		Processor        string `json:"processor"`
		PythonV          string `json:"pythonV"`
	} `json:"platform"`
}

type PersistPayload

type PersistPayload struct {
	OrgID    int    `json:"org-id"` // used in rowKey
	Hostname string `json:"string"` // used in rowKey
	Raw      []byte `json:"raw"`
}

Jump to

Keyboard shortcuts

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