verifier

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const HttpVerifierName = "Config"
View Source
const RandomVerifierName = "Random"
View Source
const Site24x7VerifierName = "Site24x7"

Variables

This section is empty.

Functions

This section is empty.

Types

type Http

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

func NewHttp

func NewHttp(options *HttpOptions, observability *common.Observability) *Http

func (*Http) Name

func (h *Http) Name() string

func (*Http) Verify

func (h *Http) Verify(or *common.ObserveResult) (*common.VerifyResult, error)

type HttpOptions

type HttpOptions struct {
	URL string
}

type Random

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

func NewRandom

func NewRandom(options *RandomOptions, observability *common.Observability) *Random

func (*Random) Name

func (rd *Random) Name() string

func (*Random) Verify

func (rd *Random) Verify(or *common.ObserveResult) (*common.VerifyResult, error)

type RandomOptions

type RandomOptions struct {
	Min   float64
	Max   float64
	Delay int
}

type Site24x7

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

func NewSite24x7

func NewSite24x7(options *Site24x7Options, observability *common.Observability) *Site24x7

func (*Site24x7) Name

func (s *Site24x7) Name() string

func (*Site24x7) Verify

type Site24x7Options

type Site24x7Options struct {
	vendors.Site24x7Options
	MonitorName           string
	MonitorFrequency      string
	MonitorTimeout        int
	HttpMethod            string
	HttpUserAgent         string
	NotificationProfileID string
	ThresholdProfileID    string
	UserGroupIDs          []string
	PollTimeout           int
	PollDelay             int
	LogReportFile         string
}

type Site24x7Summary

type Site24x7Summary struct {
	Country string
	Avg     float64
	Flags   map[common.VerifyStatusFlag]bool
}

Jump to

Keyboard shortcuts

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