s3

package
v0.0.0-...-8868a89 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Metrics = map[string]*b.MetricDescription{
	"BucketSizeBytes": {
		Help:          aws.String("The amount of data in bytes stored in a bucket in the STANDARD storage class, INTELLIGENT_TIERING storage class, Standard - Infrequent Access (STANDARD_IA) storage class, OneZone - Infrequent Access (ONEZONE_IA), Reduced Redundancy Storage (RRS) class, Deep Archive Storage (DEEP_ARCHIVE) class or, Glacier (GLACIER) storage class"),
		OutputName:    aws.String("s3_bucket_size_bytes"),
		Statistic:     h.StringPointers("Average"),
		PeriodSeconds: 60 * 60 * 24,
		RangeSeconds:  60 * 60 * 24 * 7,
		Kind:          aws.String(b.CLOUDWATCH_KIND),
		Dimensions: []*cloudwatch.Dimension{
			{
				Name:  aws.String("StorageType"),
				Value: aws.String("StandardStorage"),
			},
		},
	},
	"NumberOfObjects": {
		Help:          aws.String("The total number of objects stored in a bucket for all storage classes except for the GLACIER storage class"),
		OutputName:    aws.String("s3_number_of_objects"),
		Statistic:     h.StringPointers("Average"),
		PeriodSeconds: 60 * 60 * 24,
		RangeSeconds:  60 * 60 * 24 * 7,
		Kind:          aws.String(b.CLOUDWATCH_KIND),
		Dimensions: []*cloudwatch.Dimension{
			{
				Name:  aws.String("StorageType"),
				Value: aws.String("AllStorageTypes"),
			},
		},
	},
}

Metrics is a map of default MetricDescriptions for this namespace

Functions

func CreateResourceList

func CreateResourceList(nd *b.NamespaceDescription, wg *sync.WaitGroup)

CreateResourceList fetches a list of all S3 buckets in the region

TODO channel can be added instead of sync.WaitGroup

Types

This section is empty.

Jump to

Keyboard shortcuts

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