saconfig

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 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 `json:"APIEndpointURL"`  //API endpoint
	AMQP1PublishURL string `json:"AMQP1PublishURL"` // new amqp address to send notifications
}

EventAPIConfig ...

type EventConfiguration

type EventConfiguration struct {
	Debug               bool           `json:"Debug"`
	AMQP1EventURL       string         `json:"AMQP1EventURL"`
	ElasticHostURL      string         `json:"ElasticHostURL"`
	API                 EventAPIConfig `json:"API"`
	AlertManagerURL     string         `json:"AlertManagerURL"`
	AlertManagerEnabled bool           `json:"AlertManagerEnabled"`
	APIEnabled          bool           `json:"APIEnabled"`
	PublishEventEnabled bool           `json:"PublishEventEnabled"`
	ResetIndex          bool           `json:"ResetIndex"`
	Prefetch            int            `json:"Prefetch"`
	UniqueName          string         `json:"UniqueName"`
	ServiceType         string         `json:"ServiceType"`
	IgnoreString        string         `json:"-"` //TODO(mmagr): ?
	UseTLS              bool           `json:"UseTls"`
	TLSServerName       string         `json:"TlsServerName"`
	TLSClientCert       string         `json:"TlsClientCert"`
	TLSClientKey        string         `json:"TlsClientKey"`
	TLSCaCert           string         `json:"TlsCaCert"`
}

EventConfiguration ...

func LoadEventConfig

func LoadEventConfig(path string) EventConfiguration

LoadEventConfig ....

type MetricConfiguration

type MetricConfiguration struct {
	Debug          bool   `json:"Debug"`
	AMQP1MetricURL string `json:"AMQP1MetricURL"`
	CPUStats       bool   `json:"CPUStats"`
	Exporterhost   string `json:"Exporterhost"`
	Exporterport   int    `json:"Exporterport"`
	Prefetch       int    `json:"Prefetch"`
	DataCount      int    `json:"DataCount"` //-1 for ever which is default //TODO(mmagr): config implementation does not have a way to for default value, implement one?
	UseTimeStamp   bool   `json:"UseTimeStamp"`
	UniqueName     string `json:"UniqueName"`
	ServiceType    string `json:"ServiceType"`
	IgnoreString   string `json:"-"` //TODO(mmagr): ?
}

MetricConfiguration ....

func LoadMetricConfig

func LoadMetricConfig(path string) MetricConfiguration

LoadMetricConfig ....

Jump to

Keyboard shortcuts

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