client

package
v0.0.0-...-f987cc5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientWithRetries

func CreateClientWithRetries(service string, getClient func() (interface{}, error), retries uint, retryInterval time.Duration) (interface{}, error)

CreateClientWithRetries tries to create a client for service and retries in case of error

Types

type HealthStatus

type HealthStatus struct {
	Details struct {
		Healthy        bool
		IsActiveNode   bool
		AvailableNodes []interface{}
	}
}

HealthStatus represents status related metrics.

type Oauth2ProxyClient

type Oauth2ProxyClient struct {
	// contains filtered or unexported fields
}

Oauth2ProxyClient allows you to get oauth2_proxy metrics.

func NewOauth2ProxyClient

func NewOauth2ProxyClient(httpClient *http.Client, apiEndpoint string) (*Oauth2ProxyClient, error)

NewOauth2ProxyClient creates an Oauth2ProxyClient.

func (*Oauth2ProxyClient) GetStatus

func (client *Oauth2ProxyClient) GetStatus() error

GetStatus fetches the oauth2_proxy metrics.

type OrchestratorClient

type OrchestratorClient struct {
	// contains filtered or unexported fields
}

OrchestratorClient allows you to get Orchestrator metrics.

func NewOrchestratorClient

func NewOrchestratorClient(httpClient *http.Client, apiEndpoint string) (*OrchestratorClient, error)

NewOrchestratorClient creates an OrchestratorClient.

func (*OrchestratorClient) GetMetrics

func (client *OrchestratorClient) GetMetrics() (*OrchestratorMetrics, error)

GetMetrics fetches Orchestrator metrics.

type OrchestratorFailedSeed

type OrchestratorFailedSeed struct {
	SeedID int64
}

OrchestratorFailedSeed represents failed seeds

type OrchestratorFailovers

type OrchestratorFailovers struct {
	ID int64
}

OrchestratorFailovers represents failover metrics

type OrchestratorMetrics

type OrchestratorMetrics struct {
	Status         HealthStatus
	Problems       []interface{}
	LastFailoverID int64
	FailedSeeds    int
}

OrchestratorMetrics represents Orchestrator metrics.

type OrcusClient

type OrcusClient struct {
	// contains filtered or unexported fields
}

OrcusClient allows you to get Orcus metrics.

func NewOrcusClient

func NewOrcusClient(httpClient *http.Client, apiEndpoint string) (*OrcusClient, error)

NewOrcusClient creates an OrcusClient.

func (*OrcusClient) GetMetrics

func (client *OrcusClient) GetMetrics() (*OrcusMetrics, error)

GetMetrics fetches Orcus metrics.

type OrcusMetrics

type OrcusMetrics struct {
	LastSyncDurationSeconds float64
	TotalSyncClusters       uint64
	TotalSyncErrors         uint64
	TotalSyncCount          uint64
}

OrcusMetrics represents Orcus metrics.

type XtradbClient

type XtradbClient struct {
	// contains filtered or unexported fields
}

XtradbClient allows you to get Xtradb cluster metrics.

func NewXtradbClient

func NewXtradbClient(myCnf string, sslVerify bool) (*XtradbClient, error)

NewXtradbClient creates an XtradbClient.

func (*XtradbClient) GetMetrics

func (client *XtradbClient) GetMetrics() (*XtradbMetrics, error)

GetMetrics fetches Xtradb cluster metrics.

type XtradbMetrics

type XtradbMetrics struct {
	ClusterSize   int
	NodeState     int
	ClusterStatus int
}

XtradbMetrics represents Xtradb cluster metrics.

Jump to

Keyboard shortcuts

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