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.

Datapoint

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

type Datapoint struct { Average *float64 `type:"double"` ExtendedStatistics map[string]*float64 `type:"map"` Maximum *float64 `type:"double"` Minimum *float64 `type:"double"` SampleCount *float64 `type:"double"` Sum *float64 `type:"double"` Timestamp *time.Time `type:"timestamp"` Unit *string `type:"string" enum:"StandardUnit"` }

Encapsulates the statistical data that CloudWatch computes from metric data.

Average

Type: *float64

The average of the metric values that correspond to the data point.

ExtendedStatistics

Type: map[string]*float64

The percentile statistic for the data point.

Maximum

Type: *float64

The maximum metric value for the data point.

Minimum

Type: *float64

The minimum metric value for the data point.

SampleCount

Type: *float64

The number of metric values that contributed to the aggregate value of this data point.

Sum

Type: *float64

The sum of the metric values for the data point.

Timestamp

Type: *time.Time

The time stamp used for the data point.

Unit

Type: *string

The standard unit for the data point.

Method

GoString

func (s Datapoint) GoString() string

GoString returns the string representation

SetAverage

func (s *Datapoint) SetAverage(v float64) *Datapoint

SetAverage sets the Average field's value.

SetExtendedStatistics

func (s *Datapoint) SetExtendedStatistics(v map[string]*float64) *Datapoint

SetExtendedStatistics sets the ExtendedStatistics field's value.

SetMaximum

func (s *Datapoint) SetMaximum(v float64) *Datapoint

SetMaximum sets the Maximum field's value.

SetMinimum

func (s *Datapoint) SetMinimum(v float64) *Datapoint

SetMinimum sets the Minimum field's value.

SetSampleCount

func (s *Datapoint) SetSampleCount(v float64) *Datapoint

SetSampleCount sets the SampleCount field's value.

SetSum

func (s *Datapoint) SetSum(v float64) *Datapoint

SetSum sets the Sum field's value.

SetTimestamp

func (s *Datapoint) SetTimestamp(v time.Time) *Datapoint

SetTimestamp sets the Timestamp field's value.

SetUnit

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

SetUnit sets the Unit field's value.

String

func (s Datapoint) String() string

String returns the string representation

On this page: