collector

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.0.3

type Interface struct {
	IfName     string
	IpAddress  []string
	MacAddress string
}

func DoInterfaceIPAddress added in v0.0.3

func DoInterfaceIPAddress(ctx context.Context, c *config.Config) ([]Interface, error)

type MetricsDutum

type MetricsDutum struct {
	IfIndex uint64 `json:"ifIndex"`
	Mib     string `json:"mib"`
	IfName  string `json:"ifName"`
	Value   uint64 `json:"value"`
}

func Do

func Do(ctx context.Context, c *config.Config) ([]MetricsDutum, error)

func (*MetricsDutum) String

func (m *MetricsDutum) String() string

Jump to

Keyboard shortcuts

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