servicequotas

package
v0.0.0-...-c85406d Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package servicequotas implements methods to retrieve AWS Service Quotas information

Index

Constants

View Source
const (
	RDSServiceCode = "rds" // AWS RDS service code in AWS quotas API

	// AWS RDS service quotas codes can be listed with "aws service-quotas list-service-quotas --service-code rds"
	DBinstancesQuotacode               = "L-7B6409FD" // DB instances
	TotalStorageQuotaCode              = "L-7ADDB58A" // Total storage for all DB instances
	ManualDBInstanceSnapshotsQuotaCode = "L-272F1212" // Manual DB instance snapshots
)

Variables

This section is empty.

Functions

func NewFetcher

func NewFetcher(ctx context.Context, client ServiceQuotasClient, logger slog.Logger) *serviceQuotaFetcher

Types

type Metrics

type Metrics struct {
	DBinstances               float64
	TotalStorage              float64
	ManualDBInstanceSnapshots float64
}

Metrics contains the quotas to be monitored for the AWS RDS service

type ServiceQuotasClient

type ServiceQuotasClient interface {
	GetServiceQuota(ctx context.Context, input *aws_servicequotas.GetServiceQuotaInput, optFns ...func(*aws_servicequotas.Options)) (*aws_servicequotas.GetServiceQuotaOutput, error)
}

type Statistics

type Statistics struct {
	UsageAPICall float64
}

Directories

Path Synopsis
Package mocks contains mock for servicequotas client
Package mocks contains mock for servicequotas client

Jump to

Keyboard shortcuts

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