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.

GetResourceMetricsOutput

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

type GetResourceMetricsOutput struct { AlignedEndTime *time.Time `type:"timestamp"` AlignedStartTime *time.Time `type:"timestamp"` Identifier *string `type:"string"` MetricList []*MetricKeyDataPoints `type:"list"` NextToken *string `type:"string"` }

AlignedEndTime

Type: *time.Time

The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.

AlignedStartTime

Type: *time.Time

The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

Identifier

Type: *string

An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use an Amazon RDS instance as a data source, you specify its DbiResourceId value - for example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A

MetricList

A time-ordered series of data points, correpsonding to a dimension of a Performance Insights metric.

NextToken

Type: *string

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

Method

GoString

func (s GetResourceMetricsOutput) GoString() string

GoString returns the string representation

SetAlignedEndTime

func (s *GetResourceMetricsOutput) SetAlignedEndTime(v time.Time) *GetResourceMetricsOutput

SetAlignedEndTime sets the AlignedEndTime field's value.

SetAlignedStartTime

func (s *GetResourceMetricsOutput) SetAlignedStartTime(v time.Time) *GetResourceMetricsOutput

SetAlignedStartTime sets the AlignedStartTime field's value.

SetIdentifier

func (s *GetResourceMetricsOutput) SetIdentifier(v string) *GetResourceMetricsOutput

SetIdentifier sets the Identifier field's value.

SetMetricList

func (s *GetResourceMetricsOutput) SetMetricList(v []*MetricKeyDataPoints) *GetResourceMetricsOutput

SetMetricList sets the MetricList field's value.

SetNextToken

func (s *GetResourceMetricsOutput) SetNextToken(v string) *GetResourceMetricsOutput

SetNextToken sets the NextToken field's value.

String

func (s GetResourceMetricsOutput) String() string

String returns the string representation

On this page: