instaclustr

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Url                string
	User               string
	ProvisioningAPIKey string
	MonitoringAPIKey   string
}

type MonitoringClient

type MonitoringClient instaclustrClient

MonitoringClient is a client for InstaClustr Monitoring API

func NewMonitoringClient

func NewMonitoringClient(config Config) *MonitoringClient

NewMonitoringClient creates a MonitoringClient

func (MonitoringClient) GetNodeMetric

func (c MonitoringClient) GetNodeMetric(nodeID string, metric string) []byte

GetNodeMetric returns metrics from a node in a specific cluster

type ProvisioningClient

type ProvisioningClient instaclustrClient

ProvisioningClient is a client for InstaClustr Provisioning API

func NewProvisioningClient

func NewProvisioningClient(config Config) *ProvisioningClient

NewProvisioningClient creates a ProvisioningClient

func (ProvisioningClient) GetClusterStatus

func (c ProvisioningClient) GetClusterStatus(clusterID string) []byte

GetClusterStatus returns a list of cluster attributes, datacentres and its nodes

func (ProvisioningClient) GetClusters

func (c ProvisioningClient) GetClusters() []byte

GetClusters returns the list of Cassandra clusters

Jump to

Keyboard shortcuts

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