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.

GetRelationalDatabaseMetricDataInput

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

type GetRelationalDatabaseMetricDataInput struct { EndTime *time.Time `locationName:"endTime" type:"timestamp" required:"true"` MetricName *string `locationName:"metricName" type:"string" required:"true" enum:"RelationalDatabaseMetricName"` Period *int64 `locationName:"period" min:"60" type:"integer" required:"true"` RelationalDatabaseName *string `locationName:"relationalDatabaseName" type:"string" 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 of the time interval from which to get metric data.

Constraints:

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC,

then you input 1538424000 as the end time.

EndTime is a required field

MetricName

Type: *string

The name of the metric data to return.

MetricName is a required field

Period

Type: *int64

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

Period is a required field

RelationalDatabaseName

Type: *string

The name of your database from which to get metric data.

RelationalDatabaseName is a required field

StartTime

Type: *time.Time

The start of the time interval from which to get metric data.

Constraints:

  • Specified in Universal Coordinated Time (UTC).

  • Specified in the Unix time format.

For example, if you wish to use a start time of October 1, 2018, at 8 PM

UTC, then you input 1538424000 as the start time.

StartTime is a required field

Statistics

Type: []*string

The array of statistics for your metric data request.

Statistics is a required field

Unit

Type: *string

The unit for the metric data request.

Unit is a required field

Method

GoString

func (s GetRelationalDatabaseMetricDataInput) GoString() string

GoString returns the string representation

SetEndTime

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

SetEndTime sets the EndTime field's value.

SetMetricName

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

SetMetricName sets the MetricName field's value.

SetPeriod

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

SetPeriod sets the Period field's value.

SetRelationalDatabaseName

func (s *GetRelationalDatabaseMetricDataInput) SetRelationalDatabaseName(v string) *GetRelationalDatabaseMetricDataInput

SetRelationalDatabaseName sets the RelationalDatabaseName field's value.

SetStartTime

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

SetStartTime sets the StartTime field's value.

SetStatistics

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

SetStatistics sets the Statistics field's value.

SetUnit

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

SetUnit sets the Unit field's value.

String

func (s GetRelationalDatabaseMetricDataInput) String() string

String returns the string representation

Validate

func (s *GetRelationalDatabaseMetricDataInput) Validate() error

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

On this page: