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.

HistoricalMetric

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

type HistoricalMetric struct { Name *string `type:"string" enum:"HistoricalMetricName"` Statistic *string `type:"string" enum:"Statistic"` Threshold *Threshold `type:"structure"` Unit *string `type:"string" enum:"Unit"` }

A HistoricalMetric object that contains the Name, Unit, Statistic, and Threshold for the metric.

Name

Type: *string

The name of the historical metric.

Statistic

Type: *string

The statistic for the metric.

Threshold

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

Unit

Type: *string

The unit for the metric.

Method

GoString

func (s HistoricalMetric) GoString() string

GoString returns the string representation

SetName

func (s *HistoricalMetric) SetName(v string) *HistoricalMetric

SetName sets the Name field's value.

SetStatistic

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

SetStatistic sets the Statistic field's value.

SetThreshold

func (s *HistoricalMetric) SetThreshold(v *Threshold) *HistoricalMetric

SetThreshold sets the Threshold field's value.

SetUnit

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

SetUnit sets the Unit field's value.

String

func (s HistoricalMetric) String() string

String returns the string representation

On this page: