cost

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PantherCostKey    = "BlendedCost" // no constant for this
	PantherCostMetric = costexplorer.MetricBlendedCost
	PantherUsageKey   = "UsageQuantity" // no constant for this

	// use GetServices() to discover specific names required
	ServiceAppSync              = "AWS AppSync"
	ServiceAthena               = "Amazon Athena"
	ServiceCognito              = "Amazon Cognito"
	ServiceCloudWatch           = "AmazonCloudWatch"
	ServiceEC2ContainerRegistry = "Amazon EC2 Container Registry (ECR)"
	ServiceEFS                  = "Amazon Elastic File System"
	ServiceELB                  = "Amazon Elastic Load Balancing"
	ServiceDDB                  = "Amazon DynamoDB"
	ServiceFirehose             = "Amazon Kinesis Firehose"
	ServiceGlue                 = "AWS Glue"
	ServiceKMS                  = "AWS Key Management Service"
	ServiceLambda               = "AWS Lambda"

	ServiceS3             = "Amazon Simple Storage Service"
	ServiceSecretsManager = "AWS Secrets Manager" // nolint:gosec
	ServiceSQS            = "Amazon Simple Queue Service"
	ServiceSNS            = "Amazon Simple Notification Service"
	ServiceStepFunctions  = "AWS Step Functions"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PantherReport

type PantherReport struct {
	// contains filtered or unexported fields
}

type PantherReports

type PantherReports struct {
	Start, End       time.Time
	Granularity      string
	AccountReports   map[string]*PantherReport // accountid -> reports
	DetailedServices []string                  // services to expand
	// contains filtered or unexported fields
}

func (PantherReports) Print

func (pr PantherReports) Print()

func (PantherReports) Run

func (pr PantherReports) Run() error

type Reporter

type Reporter struct {
	awscostexplorer.Reporter
	// contains filtered or unexported fields
}

func NewReporter

func NewReporter(awsSession *session.Session) *Reporter

func (*Reporter) NewPantherReports

func (r *Reporter) NewPantherReports(startTime, endTime time.Time, granularity string,
	accounts, detailedServices []string) *PantherReports

Jump to

Keyboard shortcuts

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