AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ResultByTime

import "github.com/aws/aws-sdk-go/service/costexplorer"

type ResultByTime struct { Estimated *bool `type:"boolean"` Groups []*Group `type:"list"` TimePeriod *DateInterval `type:"structure"` Total map[string]*MetricValue `type:"map"` }

The result that is associated with a time period.

Estimated

Type: *bool

Whether the result is estimated.

Groups

One level of grouped data in the results.

TimePeriod

The time period that you want the usage and costs for.

Total

Type: map[string]*MetricValue

The total amount of cost or usage accrued during the time period.

Method

GoString

func (s ResultByTime) GoString() string

GoString returns the string representation

SetEstimated

func (s *ResultByTime) SetEstimated(v bool) *ResultByTime

SetEstimated sets the Estimated field's value.

SetGroups

func (s *ResultByTime) SetGroups(v []*Group) *ResultByTime

SetGroups sets the Groups field's value.

SetTimePeriod

func (s *ResultByTime) SetTimePeriod(v *DateInterval) *ResultByTime

SetTimePeriod sets the TimePeriod field's value.

SetTotal

func (s *ResultByTime) SetTotal(v map[string]*MetricValue) *ResultByTime

SetTotal sets the Total field's value.

String

func (s ResultByTime) String() string

String returns the string representation

On this page: