awsmeter

package
v5.35.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: AGPL-3.0, Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSMeterReport

type AWSMeterReport struct {
	Dimension string    `json:"dimension"`
	Value     int64     `json:"value"`
	Timestamp time.Time `json:"timestamp"`
}

func (*AWSMeterReport) ToJSON

func (o *AWSMeterReport) ToJSON() string

type AWSMeterService

type AWSMeterService struct {
	AwsDryRun      bool
	AwsProductCode string
	AwsMeteringSvc marketplacemeteringiface.MarketplaceMeteringAPI
}

type AwsMeter

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

func New

func New(store store.Store, config *model.Config) *AwsMeter

func (*AwsMeter) GetUserCategoryUsage

func (awsm *AwsMeter) GetUserCategoryUsage(dimensions []string, startTime time.Time, endTime time.Time) []*AWSMeterReport

a report entry is for all metrics

func (*AwsMeter) ReportUserCategoryUsage

func (awsm *AwsMeter) ReportUserCategoryUsage(reports []*AWSMeterReport) error

Jump to

Keyboard shortcuts

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