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.

PredefinedMetricSpecification

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

type PredefinedMetricSpecification struct { PredefinedMetricType *string `type:"string" required:"true" enum:"MetricType"` ResourceLabel *string `min:"1" type:"string"` }

Represents a predefined metric for a target tracking scaling policy to use with Application Auto Scaling.

PredefinedMetricType

Type: *string

The metric type. The ALBRequestCountPerTarget metric type applies only to Spot fleet requests and ECS services.

PredefinedMetricType is a required field

ResourceLabel

Type: *string

Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBRequestCountPerTarget and there is a target group attached to the Spot fleet request or ECS service.

The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where:

  • app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN

  • targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.

Method

GoString

func (s PredefinedMetricSpecification) GoString() string

GoString returns the string representation

SetPredefinedMetricType

func (s *PredefinedMetricSpecification) SetPredefinedMetricType(v string) *PredefinedMetricSpecification

SetPredefinedMetricType sets the PredefinedMetricType field's value.

SetResourceLabel

func (s *PredefinedMetricSpecification) SetResourceLabel(v string) *PredefinedMetricSpecification

SetResourceLabel sets the ResourceLabel field's value.

String

func (s PredefinedMetricSpecification) String() string

String returns the string representation

Validate

func (s *PredefinedMetricSpecification) Validate() error

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

On this page: