monitoring

package
v0.0.0-...-0ba22c9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	General General `yaml:"general"`
	Groups  []Group `yaml:"groups"`
}

Configuration stores the configuration of monitored nodes.

func FromApplicationConfiguration

func FromApplicationConfiguration(applicationConfiguration *application.Configuration) *Configuration

FromApplicationConfiguration method extracts a monitoring configuration from application configuration.

type General

type General struct {
	HealthcheckEvery      time.Duration `yaml:"healthcheckEvery"`
	HTTPClientTimeout     time.Duration `yaml:"hTTPClientTimeout"`
	RefreshDashboardEvery time.Duration `yaml:"refreshDashboardEvery"`
}

General stores common settings of GreenWall.

type Group

type Group struct {
	Name  string `yaml:"name"`
	Nodes []Node `yaml:"nodes"`
}

Group stores definitions of monitored nodes.

type Node

type Node struct {
	Name            string `yaml:"name"`
	Endpoint        string `yaml:"endpoint"`
	ExpectedPattern string `yaml:"expectedPattern"` // Deprecated field (please use one in HTTPCheckConfig)

	Type       string            `yaml:"type"`
	Parameters map[string]string `yaml:"parameters"`
}

Node stores monitoring definition of a single node.

Jump to

Keyboard shortcuts

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