aws

package
v0.10.35 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoscalingGetInstanceCount added in v0.9.10

func AutoscalingGetInstanceCount(ctx context.Context, region string, name string) (float64, error)

AutoscalingGetInstanceCount uses various techniques to estimate number of instances in an AutoScaling group. In order of preference:

  1. CloudWatch monthly average
  2. Instantaneous count right now
  3. Mean of min-size and max-size

func DynamoDBGetRRU

func DynamoDBGetRRU(ctx context.Context, region string, table string) (float64, error)

func DynamoDBGetStorageBytes

func DynamoDBGetStorageBytes(ctx context.Context, region string, table string) (int64, error)

func DynamoDBGetWRU

func DynamoDBGetWRU(ctx context.Context, region string, table string) (float64, error)

func EC2DescribeOS added in v0.9.9

func EC2DescribeOS(ctx context.Context, region string, ami string) (string, error)

func EKSGetNodeGroupAutoscalingGroups added in v0.9.11

func EKSGetNodeGroupAutoscalingGroups(ctx context.Context, region string, clusterName string, nodeGroupName string) ([]string, error)

func LambdaGetDurationAvg

func LambdaGetDurationAvg(ctx context.Context, region string, fn string) (float64, error)

func LambdaGetInvocations

func LambdaGetInvocations(ctx context.Context, region string, fn string) (float64, error)

func S3FindMetricsFilter added in v0.9.11

func S3FindMetricsFilter(ctx context.Context, region string, bucket string) (string, error)

func S3GetBucketDataBytes added in v0.9.11

func S3GetBucketDataBytes(ctx context.Context, region string, bucket string, filterName string, metric string) (float64, error)

func S3GetBucketRequests added in v0.9.11

func S3GetBucketRequests(ctx context.Context, region string, bucket string, filterName string, metrics []string) (int64, error)

func S3GetBucketSizeBytes added in v0.9.11

func S3GetBucketSizeBytes(ctx context.Context, region string, bucket string, storageType string) (float64, error)

func WithTestEndpoint

func WithTestEndpoint(ctx context.Context, url string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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