model

package
v0.0.0-...-24d954f Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AutoScalingConfigFile is filepath of autoscaling config file
	AutoScalingConfigFile string
	// AutoScalingBastionEndpoint is endpoint of autoscaling bastion when using running with autoscaling node
	AutoScalingBastionEndpoint string
)
View Source
var (

	// ErrorLogIntervalSeconds is error log collect interval
	ErrorLogIntervalSeconds = int64(halib.DefaultErrorLogIntervalSeconds)
	// NagiosPluginPaths is nagios plugin search paths. combined with `,`
	NagiosPluginPaths = halib.DefaultNagiosPluginPaths
)
View Source
var (
	// AppVersion equals main.Version
	AppVersion string
	// DisableCollectMetrics included to /status response
	DisableCollectMetrics bool
)
View Source
var MetricConfigFile string

MetricConfigFile is filepath of metric config file

Functions

func AutoScaling

func AutoScaling(req *http.Request, r render.Render)

AutoScaling list autoscaling instances

func AutoScalingConfigUpdate

func AutoScalingConfigUpdate(autoScalingRequest halib.AutoScalingConfigUpdateRequest, r render.Render)

AutoScalingConfigUpdate save autoscaling config

func AutoScalingDelete

func AutoScalingDelete(request halib.AutoScalingDeleteRequest, r render.Render)

AutoScalingDelete delete autoscaling instances data

func AutoScalingHealth

func AutoScalingHealth(req *http.Request, params martini.Params, r render.Render)

AutoScalingHealth checks auto scaling node is available

func AutoScalingInstanceDeregister

func AutoScalingInstanceDeregister(request halib.AutoScalingInstanceDeregisterRequest, r render.Render)

AutoScalingInstanceDeregister deregister autoscaling instance from dbms

func AutoScalingInstanceRegister

func AutoScalingInstanceRegister(request halib.AutoScalingInstanceRegisterRequest, r render.Render)

AutoScalingInstanceRegister register autoscaling instance to dbms

func AutoScalingLeave

func AutoScalingLeave(request halib.AutoScalingLeaveRequest, r render.Render, client *autoscaling.NodeAWSClient)

AutoScalingLeave deregister self node from autoscaling bastion. this handler is available only in agent running with autoscaling node.

func AutoScalingRefresh

func AutoScalingRefresh(request halib.AutoScalingRefreshRequest, r render.Render, client *autoscaling.AWSClient)

AutoScalingRefresh refresh autoscaling

func AutoScalingResolve

func AutoScalingResolve(params martini.Params, r render.Render)

AutoScalingResolve return ip of alias

func AutoScalingStatus

func AutoScalingStatus(req *http.Request, r render.Render, client *autoscaling.AWSClient)

AutoScalingStatus implements /status/autoscaling endpoint

func GetMachineState

func GetMachineState(r render.Render, params martini.Params)

GetMachineState returns saved specified machine state

func Inventory

func Inventory(inventoryRequest halib.InventoryRequest, r render.Render, params martini.Params)

Inventory execute command and collect inventory

func ListMachieState

func ListMachieState(r render.Render)

ListMachieState returns saved machine states

func MemoryStatus

func MemoryStatus(req *http.Request, r render.Render)

MemoryStatus implements /status/memory endpoint. returns runtime.Memstatus in JSON

func Metric

func Metric(metricRequest halib.MetricRequest, r render.Render)

Metric returns collected metrics

func MetricAppend

func MetricAppend(request halib.MetricAppendRequest, r render.Render)

MetricAppend store metrics to local dbms

func MetricConfigUpdate

func MetricConfigUpdate(metricRequest halib.MetricConfigUpdateRequest, r render.Render)

MetricConfigUpdate save metric collect config

func MetricDataBufferStatus

func MetricDataBufferStatus(r render.Render)

MetricDataBufferStatus is obsoluted.

func Monitor

func Monitor(monitorRequest halib.MonitorRequest, r render.Render)

Monitor execute monitor command and returns result

func Proxy

func Proxy(proxyRequest halib.ProxyRequest, r render.Render, client *autoscaling.AWSClient) (int, string)

Proxy do http reqest to next happo-agent

func RequestStatus

func RequestStatus(req *http.Request, r render.Render)

RequestStatus implements /status/request endpoint. returns status

func SetProxyTimeout

func SetProxyTimeout(timeoutSeconds int64)

SetProxyTimeout set timeout of _httpClient

func Status

func Status(req *http.Request, r render.Render)

Status implements /status endpoint. returns status

Types

This section is empty.

Jump to

Keyboard shortcuts

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