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.

MetricDatapoint

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

type MetricDatapoint struct { Average *float64 `locationName:"average" type:"double"` Maximum *float64 `locationName:"maximum" type:"double"` Minimum *float64 `locationName:"minimum" type:"double"` SampleCount *float64 `locationName:"sampleCount" type:"double"` Sum *float64 `locationName:"sum" type:"double"` Timestamp *time.Time `locationName:"timestamp" type:"timestamp"` Unit *string `locationName:"unit" type:"string" enum:"MetricUnit"` }

Describes the metric data point.

Average

Type: *float64

The average.

Maximum

Type: *float64

The maximum.

Minimum

Type: *float64

The minimum.

SampleCount

Type: *float64

The sample count.

Sum

Type: *float64

The sum.

Timestamp

Type: *time.Time

The timestamp (e.g., 1479816991.349).

Unit

Type: *string

The unit.

Method

GoString

func (s MetricDatapoint) GoString() string

GoString returns the string representation

SetAverage

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

SetAverage sets the Average field's value.

SetMaximum

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

SetMaximum sets the Maximum field's value.

SetMinimum

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

SetMinimum sets the Minimum field's value.

SetSampleCount

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

SetSampleCount sets the SampleCount field's value.

SetSum

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

SetSum sets the Sum field's value.

SetTimestamp

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

SetTimestamp sets the Timestamp field's value.

SetUnit

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

SetUnit sets the Unit field's value.

String

func (s MetricDatapoint) String() string

String returns the string representation

On this page: