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.

MetricValue

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

type MetricValue struct { Amount *string `type:"string"` Unit *string `type:"string"` }

The aggregated value for a metric.

Amount

Type: *string

The actual number that represents the metric.

Unit

Type: *string

The unit that the metric is given in.

Method

GoString

func (s MetricValue) GoString() string

GoString returns the string representation

SetAmount

func (s *MetricValue) SetAmount(v string) *MetricValue

SetAmount sets the Amount field's value.

SetUnit

func (s *MetricValue) SetUnit(v string) *MetricValue

SetUnit sets the Unit field's value.

String

func (s MetricValue) String() string

String returns the string representation

On this page: