config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(cfg *CheckerConfig, name string) error

Types

type CheckerConfig

type CheckerConfig struct {
	CheckURL                  string        `yaml:"check_url"`
	SendHost                  string        `yaml:"send_host"`
	GraphiteHost              string        `yaml:"graphite_host"`
	ResultMetricPattern       string        `yaml:"result_metric_pattern"`
	MetricName                string        `yaml:"metric_name"`
	Protocol                  string        `yaml:"protocol"`
	CarbonType                string        `yaml:"carbon_type"`
	CheckTimeout              time.Duration `yaml:"check_timeout"`
	SendTimeout               time.Duration `yaml:"send_timeout"`
	RetryTime                 time.Duration `yaml:"retry_time"`
	StatsInterval             time.Duration `yaml:"stats_interval"`
	InternalStatsDumpInterval time.Duration `yaml:"internal_stats_dump_interval"`
	CheckInterval             time.Duration `yaml:"check_interval"`
	LogToConsole              bool          `yaml:"log_to_console"`
	WarmupEvents              int           `yaml:"warmup_events"`
}

Jump to

Keyboard shortcuts

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