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.

CustomizedMetricSpecification

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

type CustomizedMetricSpecification struct { Dimensions []*MetricDimension `type:"list"` MetricName *string `type:"string" required:"true"` Namespace *string `type:"string" required:"true"` Statistic *string `type:"string" required:"true" enum:"MetricStatistic"` Unit *string `type:"string"` }

Configures a customized metric for a target tracking policy to use with Amazon EC2 Auto Scaling.

Dimensions

Describes the dimension of a metric.

MetricName

Type: *string

The name of the metric.

MetricName is a required field

Namespace

Type: *string

The namespace of the metric.

Namespace is a required field

Statistic

Type: *string

The statistic of the metric.

Statistic is a required field

Unit

Type: *string

The unit of the metric.

Method

GoString

func (s CustomizedMetricSpecification) GoString() string

GoString returns the string representation

SetDimensions

func (s *CustomizedMetricSpecification) SetDimensions(v []*MetricDimension) *CustomizedMetricSpecification

SetDimensions sets the Dimensions field's value.

SetMetricName

func (s *CustomizedMetricSpecification) SetMetricName(v string) *CustomizedMetricSpecification

SetMetricName sets the MetricName field's value.

SetNamespace

func (s *CustomizedMetricSpecification) SetNamespace(v string) *CustomizedMetricSpecification

SetNamespace sets the Namespace field's value.

SetStatistic

func (s *CustomizedMetricSpecification) SetStatistic(v string) *CustomizedMetricSpecification

SetStatistic sets the Statistic field's value.

SetUnit

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

SetUnit sets the Unit field's value.

String

func (s CustomizedMetricSpecification) String() string

String returns the string representation

Validate

func (s *CustomizedMetricSpecification) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: