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

type MetricValue struct { Cidrs []*string `locationName:"cidrs" type:"list"` Count *int64 `locationName:"count" type:"long"` Ports []*int64 `locationName:"ports" type:"list"` }

The value to be compared with the metric.

Cidrs

Type: []*string

If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric.

Count

Type: *int64

If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric.

Ports

Type: []*int64

If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric.

Method

GoString

func (s MetricValue) GoString() string

GoString returns the string representation

SetCidrs

func (s *MetricValue) SetCidrs(v []*string) *MetricValue

SetCidrs sets the Cidrs field's value.

SetCount

func (s *MetricValue) SetCount(v int64) *MetricValue

SetCount sets the Count field's value.

SetPorts

func (s *MetricValue) SetPorts(v []*int64) *MetricValue

SetPorts sets the Ports field's value.

String

func (s MetricValue) String() string

String returns the string representation

On this page: