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.
Click to show internal directories.
Click to hide internal directories.