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/applicationautoscaling"

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"` }

Represents a CloudWatch metric of your choosing for a target tracking scaling policy to use with Application Auto Scaling.

To create your customized metric specification:

  • Choose a metric that changes proportionally with capacity. The value of the metric should increase or decrease in inverse proportion to the number of capacity units. That is, the value of the metric should decrease when capacity increases.

For more information about CloudWatch, see Amazon CloudWatch Concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html).

Dimensions

Describes the dimension names and values associated with 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: