snmpintegration

package
v0.0.0-...-0ea8e91 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceConfig

type InterfaceConfig struct {
	MatchField string   `mapstructure:"match_field" yaml:"match_field" json:"match_field"` // e.g. name, index
	MatchValue string   `mapstructure:"match_value" yaml:"match_value" json:"match_value"` // e.g. eth0 (name), 10 (index)
	InSpeed    uint64   `mapstructure:"in_speed" yaml:"in_speed" json:"in_speed"`          // inbound speed override in bps
	OutSpeed   uint64   `mapstructure:"out_speed" yaml:"out_speed" json:"out_speed"`       // outbound speed override in bps
	Tags       []string `mapstructure:"tags" yaml:"tags" json:"tags"`                      // interface tags
}

InterfaceConfig interface related configs (e.g. interface speed override)

type PackedPingConfig

type PackedPingConfig PingConfig

func (*PackedPingConfig) UnmarshalYAML

func (pc *PackedPingConfig) UnmarshalYAML(unmarshal func(interface{}) error) error

type PingConfig

type PingConfig struct {
	Linux    PingLinuxConfig `mapstructure:"linux" yaml:"linux" json:"linux"`
	Enabled  *bool           `mapstructure:"enabled" yaml:"enabled" json:"enabled"`
	Interval *int            `mapstructure:"interval" yaml:"interval" json:"interval"`
	Timeout  *int            `mapstructure:"timeout" yaml:"timeout" json:"timeout"`
	Count    *int            `mapstructure:"count" yaml:"count" json:"count"`
}

PingConfig encapsulates the configuration for ping

type PingLinuxConfig

type PingLinuxConfig struct {
	UseRawSocket *bool `mapstructure:"use_raw_socket" yaml:"use_raw_socket" json:"use_raw_socket"`
}

Jump to

Keyboard shortcuts

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