structure

package
v0.0.0-...-9392beb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLock

func CheckLock(lock int64) bool

CheckLock check if can be remove lock. Return True if can

func CloudDimension

func CloudDimension(spootID string) *cloudwatch.Dimension

CloudDimension return struct to query the data to the AWS

func DataPoint

func DataPoint() *int64

DataPoint get the total of past to look. This config come from file

func Divider

func Divider() int64

Divider get from config the number to divider the request

func FallbackCheck

func FallbackCheck(trigger bool, lock, scaling string) bool

FallbackCheck verify if have a lock REMOVER!!!

func Fleettype

func Fleettype() string

Fleettype return fleet type from config file

func GetRegion

func GetRegion()

GetRegion verify if have a region

func GetTrigger

func GetTrigger(data int64) bool

GetTrigger returns true if you need to enable fallback

func IDMetric

func IDMetric() string

IDMetric show from config the type metric name

func IgnoreFleet

func IgnoreFleet(iamRole string) bool

IgnoreFleet returns true if the fleet does not need to monitor

func MakeLock

func MakeLock(lock int64) bool

MakeLock return true if need to increase autoscaling

func MetricName

func MetricName() *string

MetricName show the type of metric from config file

func NameSpace

func NameSpace() *string

NameSpace show the product name from AWS

func QueryData

func QueryData(dimension *cloudwatch.Dimension) *cloudwatch.MetricDataQuery

QueryData return struct to query the data to the AWS

func ScanType

func ScanType() *string

ScanType get from config the scan type

func Speed

func Speed() int64

Speed daemon from config file

func Statistic

func Statistic() *string

Statistic return the average metric type from config file

func TimeConfig

func TimeConfig() int64

TimeConfig to look at past (in minutes)

func Unit

func Unit() string

Unit show the unit name from config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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