httptrace

package module
v0.0.0-...-5e30fbe Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 15 Imported by: 0

README

HttpTrace plugin for Zabbix Agent 2

This is just an example of usage of the Collector and Runner interfaces.
NOT FOR PRODUCTION USE!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Interval int `conf:"optional,range=1:3600,default=1"`
	Timeout  int `conf:"optional,range=1:30,default=1"`
}

type Plugin

type Plugin struct {
	plugin.Base

	sync.Mutex
	// contains filtered or unexported fields
}

func (*Plugin) Collect

func (p *Plugin) Collect() (err error)

func (*Plugin) Configure

func (p *Plugin) Configure(global *plugin.GlobalOptions, private interface{})

func (*Plugin) Export

func (p *Plugin) Export(key string, params []string, ctx plugin.ContextProvider) (result interface{}, err error)

func (*Plugin) Period

func (p *Plugin) Period() int

func (*Plugin) Start

func (p *Plugin) Start()

func (*Plugin) Stop

func (p *Plugin) Stop()

func (*Plugin) Validate

func (p *Plugin) Validate(private interface{}) (err error)

Jump to

Keyboard shortcuts

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