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.

Threshold

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

type Threshold struct { Comparison *string `type:"string" enum:"Comparison"` ThresholdValue *float64 `type:"double"` }

A Threshold object that includes a comparison and ThresholdValue to compare to. Used with service level metrics.

Comparison

Type: *string

The Threshold to use to compare service level metrics to. Only "Less than" (LT) comparisons are supported.

ThresholdValue

Type: *float64

The value of the threshold to compare the metric to. Only "Less than" (LT) comparisons are supported.

Method

GoString

func (s Threshold) GoString() string

GoString returns the string representation

SetComparison

func (s *Threshold) SetComparison(v string) *Threshold

SetComparison sets the Comparison field's value.

SetThresholdValue

func (s *Threshold) SetThresholdValue(v float64) *Threshold

SetThresholdValue sets the ThresholdValue field's value.

String

func (s Threshold) String() string

String returns the string representation

On this page: