awsutil

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-2-Clause, BSD-3-Clause, PostgreSQL Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRdsInstance

func FindRdsInstance(config config.ServerConfig, sess *session.Session) (*rds.DBInstance, error)

func GetAwsSession

func GetAwsSession(cfg config.ServerConfig) (*session.Session, error)

GetAwsSession - Returns an AWS session for the specified server cfguration

func GetRdsParameter

func GetRdsParameter(group *rds.DBParameterGroupStatus, name string, svc *rds.RDS) (parameter *rds.Parameter, err error)

Types

type RdsCloudWatchReader

type RdsCloudWatchReader struct {
	// contains filtered or unexported fields
}

func NewRdsCloudWatchReader

func NewRdsCloudWatchReader(sess *session.Session, logger *util.Logger, instance string) RdsCloudWatchReader

func (RdsCloudWatchReader) GetRdsFloatMetric

func (reader RdsCloudWatchReader) GetRdsFloatMetric(metricName string, unit string) float64

GetRdsFloatMetric - Gets a float value from Cloudwatch

func (RdsCloudWatchReader) GetRdsIntMetric

func (reader RdsCloudWatchReader) GetRdsIntMetric(metricName string, unit string) int64

GetRdsIntMetric - Gets an integer value from Cloudwatch

Jump to

Keyboard shortcuts

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