aws

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPiSQLLoadAvgsToVms

func ConvertPiSQLLoadAvgsToVms(start, end time.Time, avgs []*PiSQLLoadAvg) []*viewmodel.VmTimeDbLoad

func NewAwsConfig

func NewAwsConfig(useMock bool, verbose bool) (aws.Config, error)

Types

type PerformanceInsights

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

func NewPerformanceInsights

func NewPerformanceInsights(cfg aws.Config) *PerformanceInsights

func (*PerformanceInsights) GetHalfDaySqlMetrics

func (pi *PerformanceInsights) GetHalfDaySqlMetrics(db *RdsDB, start time.Time) ([]*PiSQLLoadAvg, error)

func (*PerformanceInsights) GetHalfDayTokenizedSqlMetrics

func (pi *PerformanceInsights) GetHalfDayTokenizedSqlMetrics(db *RdsDB, start time.Time) ([]*PiSQLLoadAvg, error)

type PiSQLLoadAvg

type PiSQLLoadAvg struct {
	DbName      string
	SQL         string
	TokenizedId string
	Values      []*PiTimeValue
}

func NewPiSQLLoadAvg

func NewPiSQLLoadAvg(dbName, sql, tokenizedId string) *PiSQLLoadAvg

type PiTimeValue

type PiTimeValue struct {
	Time  time.Time
	Value float64
}

type Rds

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

func NewRds

func NewRds(cfg aws.Config) *Rds

func NewRdsWithCli

func NewRdsWithCli(cli aRds.DescribeDBInstancesAPIClient) *Rds

func (*Rds) GetDBs

func (rds *Rds) GetDBs(engines []string) ([]*RdsDB, error)

type RdsDB

type RdsDB struct {
	InstanceIdentifier string
	DbiResourceId      string
}

Jump to

Keyboard shortcuts

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