awsbilling

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 15 Imported by: 1

README

Go Reference GitHub go.mod Go version GitHub release (latest by date) Go Report Card Actions Status

HomeDashboard AWS Billing DataSource

Receives cloud watch event for new billing report put on S3 and calculates current costs for AWS based on this report.

Documentation

Index

Constants

View Source
const COLUMN_BILLING_PERIOD = 7
View Source
const COLUMN_COSTS = 24
View Source
const COLUMN_CURRENCYCODE = 20
View Source
const COLUMN_LINEITEMTYPE = 10
View Source
const COLUMN_PRODUCTCODE = 13
View Source
const COLUMN_REGION = 63

Variables

This section is empty.

Functions

func New

func New(skipHeadline bool) core.S3EventProcessor

New creates a processor to generate billing reports.

Types

type BillingReportProcessor

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

BillingReportProcessor reads context from a AWS billing report and generates a biling report events with sumarized amounts.

func (*BillingReportProcessor) ProcessEvent

func (processor *BillingReportProcessor) ProcessEvent(entity awsevents.S3Entity, content []byte) (proto.Message, error)

Process is called to process given event for a S3 object. If download option is enable via config it will pass S3 object content as well.

Directories

Path Synopsis
lambda module

Jump to

Keyboard shortcuts

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