Documentation ¶
Overview ¶
Package networkpath defines the agent corecheck for the Network Path integration
Index ¶
Constants ¶
View Source
const CheckName = "network_path"
CheckName defines the name of the Network Path check
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
Check doesn't need additional fields
func (*Check) Configure ¶
func (c *Check) Configure(senderManager sender.SenderManager, integrationConfigDigest uint64, rawInstance integration.Data, rawInitConfig integration.Data, source string) error
Configure the networkpath check
func (*Check) SendNetPathMDToEP ¶
SendNetPathMDToEP sends a traced network path to EP
type CheckConfig ¶
type CheckConfig struct { DestHostname string DestPort uint16 SourceService string DestinationService string MaxTTL uint8 Protocol payload.Protocol Timeout time.Duration MinCollectionInterval time.Duration Tags []string Namespace string }
CheckConfig defines the configuration of the Network Path integration
func NewCheckConfig ¶
func NewCheckConfig(rawInstance integration.Data, rawInitConfig integration.Data) (*CheckConfig, error)
NewCheckConfig builds a new check config
type InitConfig ¶
type InitConfig struct { MinCollectionInterval int64 `yaml:"min_collection_interval"` TimeoutMs int64 `yaml:"timeout"` MaxTTL uint8 `yaml:"max_ttl"` }
InitConfig is used to deserialize integration init config
type InstanceConfig ¶
type InstanceConfig struct { DestHostname string `yaml:"hostname"` DestPort uint16 `yaml:"port"` Protocol string `yaml:"protocol"` SourceService string `yaml:"source_service"` DestinationService string `yaml:"destination_service"` MaxTTL uint8 `yaml:"max_ttl"` TimeoutMs int64 `yaml:"timeout"` MinCollectionInterval int `yaml:"min_collection_interval"` Tags []string `yaml:"tags"` }
InstanceConfig is used to deserialize integration instance config
Click to show internal directories.
Click to hide internal directories.