controller

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_FIELD_LENGTH int = 3000
)

Variables

This section is empty.

Functions

func ValidateAccount

func ValidateAccount(bag *m.AppDBag, logger *log.Logger) error

Types

type AppDRestAuth

type AppDRestAuth struct {
	Token     string
	SessionID string
}

func NewRestAuth

func NewRestAuth(t string, s string) AppDRestAuth

type ControllerClient

type ControllerClient struct {
	ConfManager *config.MutexConfigManager

	MetricsCache map[string]float64
	// contains filtered or unexported fields
}

func NewControllerClient

func NewControllerClient(cm *config.MutexConfigManager, logger *log.Logger) (*ControllerClient, error)

func (*ControllerClient) DeleteAppDNode

func (c *ControllerClient) DeleteAppDNode(nodeID int) error

func (*ControllerClient) DetermineNodeID

func (c *ControllerClient) DetermineNodeID(appName string, tierName string, nodeName string) (int, int, int, error)

func (*ControllerClient) EnableAppAnalytics

func (c *ControllerClient) EnableAppAnalytics(appID int, appName string) error

func (*ControllerClient) FindAppID

func (c *ControllerClient) FindAppID(appName string) (int, error)

func (*ControllerClient) FindNodeID

func (c *ControllerClient) FindNodeID(appID int, tierName string, nodeName string) (int, int, error)

func (*ControllerClient) GetControllerStatus

func (c *ControllerClient) GetControllerStatus(bag *m.AppDBag) error

func (*ControllerClient) GetMetricID

func (c *ControllerClient) GetMetricID(appID int, metricPath string) (float64, error)

func (*ControllerClient) GetMetricID457 added in v0.1.12

func (c *ControllerClient) GetMetricID457(appID int, metricPath string) (float64, error)

func (*ControllerClient) MarkNodeHistorical

func (c *ControllerClient) MarkNodeHistorical(nodeID int)

func (*ControllerClient) PostMetrics

func (c *ControllerClient) PostMetrics(metrics m.AppDMetricList) error

func (*ControllerClient) RegisterMetrics

func (c *ControllerClient) RegisterMetrics(metrics m.AppDMetricList) error

func (*ControllerClient) StartBT

func (c *ControllerClient) StartBT(name string) appd.BtHandle

func (*ControllerClient) StopBT

func (c *ControllerClient) StopBT(bth appd.BtHandle)

type ControllerInfo

type ControllerInfo struct {
	Available  string `xml:"available"`
	Serverinfo struct {
		Serverversion string `xml:"serverversion"`
	} `xml:"serverinfo"̀`
}

type RestClient

type RestClient struct {
	Bag *m.AppDBag
	// contains filtered or unexported fields
}

func NewRestClient

func NewRestClient(bag *m.AppDBag, logger *log.Logger) *RestClient

func (*RestClient) CallAppDController

func (rc *RestClient) CallAppDController(path, method string, data []byte) ([]byte, error)

func (*RestClient) CreateDashboard

func (rc *RestClient) CreateDashboard(templatePath string) ([]byte, error)

func (*RestClient) CreateSchema

func (rc *RestClient) CreateSchema(schemaName string, data []byte) ([]byte, error)

func (*RestClient) DeleteSchema

func (rc *RestClient) DeleteSchema(schemaName string) error

func (*RestClient) EnsureSchema

func (rc *RestClient) EnsureSchema(schemaName string, current m.AppDSchemaInterface) error

func (*RestClient) GetControllerVersion

func (rc *RestClient) GetControllerVersion() ([]byte, error)

func (*RestClient) GetRestAuth

func (rc *RestClient) GetRestAuth() (AppDRestAuth, error)

func (*RestClient) LoadSchema

func (rc *RestClient) LoadSchema(schemaName string) (*map[string]interface{}, error)

func (*RestClient) MarkNodeHistorical

func (rc *RestClient) MarkNodeHistorical(nodeId int) error

func (*RestClient) PostAppDEvents

func (rc *RestClient) PostAppDEvents(schemaName string, data []byte) []byte

func (*RestClient) SchemaExists

func (rc *RestClient) SchemaExists(schemaName string) bool

Jump to

Keyboard shortcuts

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