upsd

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address  string       `yaml:"address"`
	Username string       `yaml:"username"`
	Password string       `yaml:"password"`
	Timeout  web.Duration `yaml:"timeout"`
}

type Upsd

type Upsd struct {
	module.Base

	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

func New

func New() *Upsd

func (*Upsd) Charts

func (u *Upsd) Charts() *module.Charts

func (*Upsd) Check

func (u *Upsd) Check() bool

func (*Upsd) Cleanup

func (u *Upsd) Cleanup()

func (*Upsd) Collect

func (u *Upsd) Collect() map[string]int64

func (*Upsd) Init

func (u *Upsd) Init() bool

Jump to

Keyboard shortcuts

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