Documentation ¶
Overview ¶
Package stats contains functions to gather usage stats of different services and consolidated billing estimations.
Index ¶
- func GetCloudFrontUsage(sess *session.Session, startTime, endTime time.Time) (cloudFrontUsage map[string]string)
- func GetEC2Usage(sess *session.Session) (ec2Usage map[string]string)
- func GetElasticacheUsage(sess *session.Session, startTime, endTime time.Time) (elasticacheUsage map[string]string)
- func GetEstimatedBilling(sess *session.Session, startTime, endTime time.Time) (latest float64, average float64)
- func GetRDSUsage(sess *session.Session, startTime, endTime time.Time) (RDSUsage map[string]string)
- func GetS3Usage(sess *session.Session, startTime, endTime time.Time) (s3Usage map[string]string)
- func GetSortedKeySlice(m map[string]string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCloudFrontUsage ¶
func GetCloudFrontUsage(sess *session.Session, startTime, endTime time.Time) (cloudFrontUsage map[string]string)
GetCloudFrontUsage gets cloudfront usage for given session within specified period of time.
func GetEC2Usage ¶
GetEC2Usage gets EC2 usage for given session.
func GetElasticacheUsage ¶
func GetElasticacheUsage(sess *session.Session, startTime, endTime time.Time) (elasticacheUsage map[string]string)
GetElasticacheUsage gets elasticache usage for given sessions within specified period of time.
func GetEstimatedBilling ¶
func GetEstimatedBilling(sess *session.Session, startTime, endTime time.Time) (latest float64, average float64)
GetEstimatedBilling calculates estimated billing for given session within specified period of time
func GetRDSUsage ¶
GetRDSUsage gets RDS usage for given sessions within specified period of time.
func GetS3Usage ¶
GetS3Usage gets the S3 usage for given session within specified period of time.
func GetSortedKeySlice ¶
GetSortedKeySlice gets sorted key slices from a map
Types ¶
This section is empty.