syno

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

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

Go to latest
Published: Oct 7, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Diskstation string
	Interval    time.Duration
	Plugins     map[string]plugins.Plugin
	SNMP        *gosnmp.GoSNMP
}

Client defines the Synology SNMP client

func NewClient

func NewClient(dsIP string, interval time.Duration) (*Client, error)

NewClient defines a new client for the Synology Diskstation

func (*Client) CPUMetrics

func (c *Client) CPUMetrics() (map[string]float64, error)

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) DiskMetrics

func (c *Client) DiskMetrics() (map[string]float64, error)

func (*Client) LoadMetrics

func (c *Client) LoadMetrics() (map[string]float64, error)

func (*Client) MemoryMetrics

func (c *Client) MemoryMetrics() (map[string]float64, error)

func (*Client) NetworkMetrics

func (c *Client) NetworkMetrics() (map[string]float64, error)

func (*Client) SystemMetrics

func (c *Client) SystemMetrics() (map[string]float64, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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