Documentation
¶
Index ¶
Constants ¶
View Source
const ( BYTE = 1 << (10 * iota) KILOBYTE MEGABYTE GIGABYTE TERABYTE )
Variables ¶
View Source
var ExtraLabelNames, ExtraLabelValues []string
Functions ¶
func SpectrumLogger ¶
Types ¶
type Config ¶
type Config struct {
Targets []Target `yaml:"targets"`
ExtraLabels []Label `yaml:"extra_labels"`
TlsServerConfig TlsServerConfig `yaml:"tls_server_config"`
// contains filtered or unexported fields
}
func (*Config) SetFilename ¶
type SpectrumClient ¶
type SpectrumClient struct {
UserName string
Password string
IpAddress string
ErrorCount float64
Hostname string
VerifyCert bool
AuthTokenCache *AuthToken
AuthTokenMutex *sync.Mutex
ColCounter *Counter //shared cross all SpectrumClients of a target
}
func (*SpectrumClient) CallSpectrumAPI ¶
func (s *SpectrumClient) CallSpectrumAPI(restCmd string, autoRenewToken bool) (body string, err error)
func (*SpectrumClient) RenewAuthToken ¶
func (s *SpectrumClient) RenewAuthToken(needVerify bool) (Counter, int)
type TlsServerConfig ¶
Click to show internal directories.
Click to hide internal directories.