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.

GetInstanceMetricDataInput

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

type GetInstanceMetricDataInput struct { EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"` InstanceName *string `locationName:"instanceName" type:"string" required:"true"` MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"InstanceMetricName"` Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` Statistics []*string `locationName:"statistics" type:"list" required:"true"` Unit *string `locationName:"unit" type:"string" required:"true" enum:"MetricUnit"` }

EndTime

Type: *time.Time

The end time of the time period.

EndTime is a required field

InstanceName

Type: *string

The name of the instance for which you want to get metrics data.

InstanceName is a required field

MetricName

Type: *string

The metric name to get data about.

MetricName is a required field

Period

Type: *int64

The granularity, in seconds, of the returned data points.

Period is a required field

StartTime

Type: *time.Time

The start time of the time period.

StartTime is a required field

Statistics

Type: []*string

The instance statistics.

Statistics is a required field

Unit

Type: *string

The unit. The list of valid values is below.

Unit is a required field

Method

GoString

func (s GetInstanceMetricDataInput) GoString() string

GoString returns the string representation

SetEndTime

func (s *GetInstanceMetricDataInput) SetEndTime(v time.Time) *GetInstanceMetricDataInput

SetEndTime sets the EndTime field's value.

SetInstanceName

func (s *GetInstanceMetricDataInput) SetInstanceName(v string) *GetInstanceMetricDataInput

SetInstanceName sets the InstanceName field's value.

SetMetricName

func (s *GetInstanceMetricDataInput) SetMetricName(v string) *GetInstanceMetricDataInput

SetMetricName sets the MetricName field's value.

SetPeriod

func (s *GetInstanceMetricDataInput) SetPeriod(v int64) *GetInstanceMetricDataInput

SetPeriod sets the Period field's value.

SetStartTime

func (s *GetInstanceMetricDataInput) SetStartTime(v time.Time) *GetInstanceMetricDataInput

SetStartTime sets the StartTime field's value.

SetStatistics

func (s *GetInstanceMetricDataInput) SetStatistics(v []*string) *GetInstanceMetricDataInput

SetStatistics sets the Statistics field's value.

SetUnit

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

SetUnit sets the Unit field's value.

String

func (s GetInstanceMetricDataInput) String() string

String returns the string representation

Validate

func (s *GetInstanceMetricDataInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: