http

package
v0.0.0-...-ce0f0b0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAlertEvaluateInterval

func SetAlertEvaluateInterval(interval int64)

func SetAlertThreshold

func SetAlertThreshold(threshold float64)

Types

type HTTPAccessLogEntry

type HTTPAccessLogEntry struct {
	RemoteHost    string
	RemoteLogname string
	User          string
	Time          time.Time
	Method        string
	URI           string
	// uri before the second '/'
	Section   string
	Protocol  string
	Status    int
	BytesSent int
	Referer   string
	UserAgent string
	URL       string
}

type HTTPAccessLogFilter

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

func NewHTTPAccessLogFilter

func NewHTTPAccessLogFilter() *HTTPAccessLogFilter

func (HTTPAccessLogFilter) HandleEntry

func (f HTTPAccessLogFilter) HandleEntry(time time.Time, entry string) error

func (HTTPAccessLogFilter) RegisterMetrics

func (f HTTPAccessLogFilter) RegisterMetrics()

func (HTTPAccessLogFilter) RegisterMonitors

func (f HTTPAccessLogFilter) RegisterMonitors()

func (*HTTPAccessLogFilter) Summary

func (f *HTTPAccessLogFilter) Summary(evalInterval int64) printer.Summary

Jump to

Keyboard shortcuts

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