stats

package
v0.0.0-...-fc93924 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 14 Imported by: 1

Documentation

Overview

Package stats contains functions to gather usage stats of different services and consolidated billing estimations.

Index

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

func GetEC2Usage(sess *session.Session) (ec2Usage map[string]string)

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

func GetRDSUsage(sess *session.Session, startTime, endTime time.Time) (RDSUsage map[string]string)

GetRDSUsage gets RDS usage for given sessions within specified period of time.

func GetS3Usage

func GetS3Usage(sess *session.Session, startTime, endTime time.Time) (s3Usage map[string]string)

GetS3Usage gets the S3 usage for given session within specified period of time.

func GetSortedKeySlice

func GetSortedKeySlice(m map[string]string) []string

GetSortedKeySlice gets sorted key slices from a map

Types

This section is empty.

Jump to

Keyboard shortcuts

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