network

package
v0.0.0-...-f3e8d88 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package network provides core checks for networking

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NTPCheck

type NTPCheck struct {
	// contains filtered or unexported fields
}

NTPCheck only has sender and config

func (*NTPCheck) Configure

func (c *NTPCheck) Configure(data check.ConfigData, initConfig check.ConfigData) error

Configure configure the data from the yaml

func (*NTPCheck) GetMetricStats

func (c *NTPCheck) GetMetricStats() (map[string]int64, error)

GetMetricStats returns the stats from the last run of the check

func (*NTPCheck) GetWarnings

func (c *NTPCheck) GetWarnings() []error

GetWarnings grabs the last warnings from the sender

func (*NTPCheck) ID

func (c *NTPCheck) ID() check.ID

ID returns the id of the instance

func (*NTPCheck) Interval

func (c *NTPCheck) Interval() time.Duration

Interval returns the scheduling time for the check

func (*NTPCheck) Run

func (c *NTPCheck) Run() error

Run runs the check

func (*NTPCheck) Stop

func (c *NTPCheck) Stop()

Stop does nothing

func (*NTPCheck) String

func (c *NTPCheck) String() string

Jump to

Keyboard shortcuts

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