code: func (c *PI) GetResourceMetrics(input *GetResourceMetricsInput) (*GetResourceMetricsOutput, error) {
  	req, out := c.GetResourceMetricsRequest(input)
  	return out, req.Send()
  }
docs: // GetResourceMetrics API operation for AWS Performance Insights.
  //
  // Retrieve Performance Insights metrics for a set of data sources, over a time
  // period. You can provide specific dimension groups and dimensions, and provide
  // aggregation and filtering criteria for each group.
  //
  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  // with awserr.Error's Code and Message methods to get detailed information about
  // the error.
  //
  // See the AWS API reference guide for AWS Performance Insights's
  // API operation GetResourceMetrics for usage and error information.
  //
  // Returned Error Codes:
  //   * ErrCodeInvalidArgumentException "InvalidArgumentException"
  //   One of the arguments provided is invalid for this request.
  //
  //   * ErrCodeInternalServiceError "InternalServiceError"
  //   The request failed due to an unknown error.
  //
  //   * ErrCodeNotAuthorizedException "NotAuthorizedException"
  //   The user is not authorized to perform this request.
  //
  // See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetrics