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.

Sample

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

type Sample struct { Arn *string `locationName:"arn" min:"32" type:"string"` Type *string `locationName:"type" type:"string" enum:"SampleType"` Url *string `locationName:"url" type:"string"` }

Represents a sample of performance data.

Arn

Type: *string

The sample's ARN.

Type

Type: *string

The sample's type.

Must be one of the following values:

  • CPU: A CPU sample type. This is expressed as the app processing CPU time (including child processes) as reported by process, as a percentage.

  • MEMORY: A memory usage sample type. This is expressed as the total proportional set size of an app process, in kilobytes.

  • NATIVE_AVG_DRAWTIME

  • NATIVE_FPS

  • NATIVE_FRAMES

  • NATIVE_MAX_DRAWTIME

  • NATIVE_MIN_DRAWTIME

  • OPENGL_AVG_DRAWTIME

  • OPENGL_FPS

  • OPENGL_FRAMES

  • OPENGL_MAX_DRAWTIME

  • OPENGL_MIN_DRAWTIME

  • RX

  • RX_RATE: The total number of bytes per second (TCP and UDP) that are sent, by app process.

  • THREADS: A threads sample type. This is expressed as the total number of threads per app process.

  • TX

  • TX_RATE: The total number of bytes per second (TCP and UDP) that are received, by app process.

Url

Type: *string

The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the sample's file.

Method

GoString

func (s Sample) GoString() string

GoString returns the string representation

SetArn

func (s *Sample) SetArn(v string) *Sample

SetArn sets the Arn field's value.

SetType

func (s *Sample) SetType(v string) *Sample

SetType sets the Type field's value.

SetUrl

func (s *Sample) SetUrl(v string) *Sample

SetUrl sets the Url field's value.

String

func (s Sample) String() string

String returns the string representation

On this page: