agent

package
v0.0.0-...-1d39891 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnalyzerStructClientPool

func NewAnalyzerStructClientPool(authOpts *shttp.AuthenticationOpts) (*ws.StructClientPool, error)

NewAnalyzerStructClientPool creates a new http WebSocket client Pool with authentication

func NewTopologyProbeBundle

func NewTopologyProbeBundle(g *graph.Graph, hostNode *graph.Node) (*probe.Bundle, error)

NewTopologyProbeBundle creates a new topology probe.Bundle based on the configuration

Types

type Agent

type Agent struct {
	ws.DefaultSpeakerEventHandler
	// contains filtered or unexported fields
}

Agent object started on each hosts/namespaces

func NewAgent

func NewAgent() (*Agent, error)

NewAgent instantiates a new Agent aiming to launch probes (topology and flow)

func (*Agent) GetStatus

func (a *Agent) GetStatus() interface{}

GetStatus returns the status of an agent

func (*Agent) Start

func (a *Agent) Start()

Start the agent services

func (*Agent) Stop

func (a *Agent) Stop()

Stop agent services

type CPUInfo

type CPUInfo struct {
	CPU        int64
	VendorID   string `json:"VendorID,omitempty"`
	Family     string `json:"Family,omitempty"`
	Model      string `json:"Model,omitempty"`
	Stepping   int64  `json:"Stepping,omitempty"`
	PhysicalID string `json:"PhysicalID,omitempty"`
	CoreID     string `json:"CoreID,omitempty"`
	Cores      int64  `json:"Cores,omitempty"`
	ModelName  string `json:"ModelName,omitempty"`
	Mhz        int64  `json:"Mhz,omitempty"`
	CacheSize  int64  `json:"CacheSize,omitempty"`
	Microcode  string `json:"Microcode,omitempty"`
}

CPUInfo defines host information

type Status

type Status struct {
	Clients        map[string]ws.ConnStatus
	Analyzers      map[string]pod.ConnStatus
	TopologyProbes map[string]interface{}
	FlowProbes     []string
}

Status agent object

Status describes the status of an agent

swagger:model AgentStatus

Jump to

Keyboard shortcuts

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