telegrafsensor

package
v0.0.0-...-6307c48 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Model = resource.NewModel("viam", "viam-sensor", "telegrafsensor")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	resource.TriviallyValidateConfig
	DisableCpu       bool `json:"disable_cpu"`
	DisableDisk      bool `json:"disable_disk"`
	DisableDiskIo    bool `json:"disable_disk_io"`
	DisableKernel    bool `json:"disable_kernel"`
	DisableMem       bool `json:"disable_mem"`
	DisableNet       bool `json:"disable_net"`
	DisableNetstat   bool `json:"disable_netstat"`
	DisableProcesses bool `json:"disable_processes"`
	DisableSwap      bool `json:"disable_swap"`
	DisableSystem    bool `json:"disable_system"`
	DisableTemp      bool `json:"disable_temp,omitempty"`
	DisableWireless  bool `json:"disable_wireless,omitempty"`
}

type Metric

type Metric struct {
	Name      string                 `json:"name"`
	Fields    map[string]interface{} `json:"fields"`
	Tags      map[string]interface{} `json:"tags"`
	Timestamp uint64                 `json:"timestamp"`
}

type TelegrafSensor

type TelegrafSensor struct {
	resource.Named
	resource.AlwaysRebuild
	resource.TriviallyCloseable
	// contains filtered or unexported fields
}

func (*TelegrafSensor) Readings

func (ts *TelegrafSensor) Readings(ctx context.Context, _ map[string]interface{}) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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