saconfig

package
v0.0.0-...-771c5c2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventAPIConfig

type EventAPIConfig struct {
	APIEndpointURL  string //API endpoint
	AMQP1PublishURL string // new amqp address to send notifications
}

EventAPIConfig ...

type EventConfiguration

type EventConfiguration struct {
	Debug               bool
	AMQP1EventURL       string
	ElasticHostURL      string
	API                 EventAPIConfig
	AlertManagerURL     string
	AlertManagerEnabled bool
	APIEnabled          bool
	PublishEventEnabled bool
	ResetIndex          bool
	IgnoreString        string `json:"-"`
}

EventConfiguration ...

func LoadEventConfig

func LoadEventConfig(path string) EventConfiguration

LoadEventConfig ....

type MetricConfiguration

type MetricConfiguration struct {
	Debug          bool
	AMQP1MetricURL string
	CPUStats       bool
	Exporterhost   string
	Exporterport   int
	DataCount      int //-1 for ever which is default
	UseSample      bool
	Sample         SampleDataConfig
	IgnoreString   string `json:"-"`
}

MetricConfiguration ....

func LoadMetricConfig

func LoadMetricConfig(path string) MetricConfiguration

LoadMetricConfig ....

type SampleDataConfig

type SampleDataConfig struct {
	HostCount   int //no of host to simulate
	PluginCount int //No of plugin count per hosts
	DataCount   int //-1 for ever howmany times sample data should be generated

}

SampleDataConfig ...

Jump to

Keyboard shortcuts

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