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 ...
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 ....
Click to show internal directories.
Click to hide internal directories.