Documentation ¶
Index ¶
- Variables
- func AutoScaling(req *http.Request, r render.Render)
- func AutoScalingConfigUpdate(autoScalingRequest halib.AutoScalingConfigUpdateRequest, r render.Render)
- func AutoScalingDelete(request halib.AutoScalingDeleteRequest, r render.Render)
- func AutoScalingHealth(req *http.Request, params martini.Params, r render.Render)
- func AutoScalingInstanceDeregister(request halib.AutoScalingInstanceDeregisterRequest, r render.Render)
- func AutoScalingInstanceRegister(request halib.AutoScalingInstanceRegisterRequest, r render.Render)
- func AutoScalingLeave(request halib.AutoScalingLeaveRequest, r render.Render, ...)
- func AutoScalingRefresh(request halib.AutoScalingRefreshRequest, r render.Render, ...)
- func AutoScalingResolve(params martini.Params, r render.Render)
- func AutoScalingStatus(req *http.Request, r render.Render, client *autoscaling.AWSClient)
- func GetMachineState(r render.Render, params martini.Params)
- func Inventory(inventoryRequest halib.InventoryRequest, r render.Render, ...)
- func ListMachieState(r render.Render)
- func MemoryStatus(req *http.Request, r render.Render)
- func Metric(metricRequest halib.MetricRequest, r render.Render)
- func MetricAppend(request halib.MetricAppendRequest, r render.Render)
- func MetricConfigUpdate(metricRequest halib.MetricConfigUpdateRequest, r render.Render)
- func MetricDataBufferStatus(r render.Render)
- func Monitor(monitorRequest halib.MonitorRequest, r render.Render)
- func Proxy(proxyRequest halib.ProxyRequest, r render.Render, ...) (int, string)
- func RequestStatus(req *http.Request, r render.Render)
- func SetProxyTimeout(timeoutSeconds int64)
- func Status(req *http.Request, r render.Render)
Constants ¶
This section is empty.
Variables ¶
var ( // AutoScalingConfigFile is filepath of autoscaling config file AutoScalingConfigFile string // AutoScalingBastionEndpoint is endpoint of autoscaling bastion when using running with autoscaling node AutoScalingBastionEndpoint string )
var ( // ErrorLogIntervalSeconds is error log collect interval ErrorLogIntervalSeconds = int64(halib.DefaultErrorLogIntervalSeconds) // NagiosPluginPaths is nagios plugin search paths. combined with `,` NagiosPluginPaths = halib.DefaultNagiosPluginPaths )
var ( // AppVersion equals main.Version AppVersion string // DisableCollectMetrics included to /status response DisableCollectMetrics bool )
var MetricConfigFile string
MetricConfigFile is filepath of metric config file
Functions ¶
func AutoScaling ¶
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 ¶
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 ¶
AutoScalingResolve return ip of alias
func AutoScalingStatus ¶
AutoScalingStatus implements /status/autoscaling endpoint
func GetMachineState ¶
GetMachineState returns saved specified machine state
func ListMachieState ¶
ListMachieState returns saved machine states
func MemoryStatus ¶
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 ¶
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 ¶
RequestStatus implements /status/request endpoint. returns status
func SetProxyTimeout ¶
func SetProxyTimeout(timeoutSeconds int64)
SetProxyTimeout set timeout of _httpClient
Types ¶
This section is empty.