httpcheck

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: GPL-3.0 Imports: 11 Imported by: 1

README

httpcheck

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Charts

type Charts = modules.Charts

Charts is an alias for modules.Charts

type Dims

type Dims = modules.Dims

Dims is an alias for modules.Dims

type HTTPCheck

type HTTPCheck struct {
	modules.Base

	web.HTTP `yaml:",inline"`

	StatusAccepted []int  `yaml:"status_accepted"`
	ResponseMatch  string `yaml:"response_match"`
	// contains filtered or unexported fields
}

HTTPCheck httpcheck module

func New

func New() *HTTPCheck

New creates HTTPCheck with default values

func (HTTPCheck) Charts

func (hc HTTPCheck) Charts() *Charts

Charts creates Charts

func (HTTPCheck) Check

func (hc HTTPCheck) Check() bool

Check makes check

func (HTTPCheck) Cleanup

func (HTTPCheck) Cleanup()

Cleanup makes cleanup

func (*HTTPCheck) Collect

func (hc *HTTPCheck) Collect() map[string]int64

Collect collects metrics

func (*HTTPCheck) Init

func (hc *HTTPCheck) Init() bool

Init makes initialization

Jump to

Keyboard shortcuts

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