Documentation ¶
Index ¶
- type EcsClient
- func (c *EcsClient) CallECSAPI(request string) (response string, err error)
- func (c *EcsClient) Logout() error
- func (c *EcsClient) RetrieveAuthToken() (authToken string, err error)
- func (c *EcsClient) RetrieveClusterState() (EcsClusterState, error)
- func (c *EcsClient) RetrieveNodeCount() int
- func (c *EcsClient) RetrieveNodeInfo()
- func (c *EcsClient) RetrieveNodeStateParallel() []NodeState
- func (c *EcsClient) RetrieveReplState() (EcsReplState, error)
- type EcsClusterState
- type EcsReplState
- type NodeState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EcsClient ¶
type EcsClient struct { UserName string Password string AuthToken string ClusterAddress string EcsVersion string ErrorCount float64 // contains filtered or unexported fields }
EcsClient is used to persist connection to an ECS Cluster
func (*EcsClient) CallECSAPI ¶
func (*EcsClient) Logout ¶
Logout closes out the connection to ECS when we are done. if we dont log out we use up all of the available login tokens
func (*EcsClient) RetrieveAuthToken ¶
RetrieveAuthToken and store as part of the client struct for future use
func (*EcsClient) RetrieveClusterState ¶
func (c *EcsClient) RetrieveClusterState() (EcsClusterState, error)
RetrieveClusterState will return a struct containing the state of the ECS cluster on query
func (*EcsClient) RetrieveNodeCount ¶
RetrieveNodeCount returns number of nodes found in the cluster since the "nodeList" is private
func (*EcsClient) RetrieveNodeInfo ¶
func (c *EcsClient) RetrieveNodeInfo()
RetrieveNodeInfo will retrieve a list of individual nodes in the cluster this is used to pull DTstats later on
func (*EcsClient) RetrieveNodeStateParallel ¶
RetrieveNodeStateParallel pulls all the dtstate from nodes in the cluster all at once
func (*EcsClient) RetrieveReplState ¶
func (c *EcsClient) RetrieveReplState() (EcsReplState, error)
RetrieveReplState will return a struct containing the state of the ECS cluster on query
type EcsClusterState ¶
type EcsClusterState struct { NumBadDisks float64 NumNodes float64 NumBadNodes float64 NumGoodDisks float64 NumGoodNodes float64 VdcName string AlertsNumUnackCritical float64 AlertsNumUnackError float64 AlertsNumUnackInfo float64 AlertsNumUnackWarning float64 DiskSpaceFree float64 DiskSpaceTotal float64 DiskSpaceAllocated float64 TransactionErrorsTotal float64 TransactionSuccessTotal float64 TransactionReadLatency float64 TransactionWriteLatency float64 TransactionReadTransactionsPerSecond float64 TransactionWriteTransactionsPerSecond float64 TransactionWriteBandwidthCurrent float64 TransactionReadBandwidthCurrent float64 }