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.

CloudwatchMetricAction

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

type CloudwatchMetricAction struct { MetricName *string `locationName:"metricName" type:"string" required:"true"` MetricNamespace *string `locationName:"metricNamespace" type:"string" required:"true"` MetricTimestamp *string `locationName:"metricTimestamp" type:"string"` MetricUnit *string `locationName:"metricUnit" type:"string" required:"true"` MetricValue *string `locationName:"metricValue" type:"string" required:"true"` RoleArn *string `locationName:"roleArn" type:"string" required:"true"` }

Describes an action that captures a CloudWatch metric.

MetricName

Type: *string

The CloudWatch metric name.

MetricName is a required field

MetricNamespace

Type: *string

The CloudWatch metric namespace name.

MetricNamespace is a required field

MetricTimestamp

Type: *string

An optional Unix timestamp (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#about_timestamp).

MetricUnit

Type: *string

The metric unit (https://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/cloudwatch_concepts.html#Unit) supported by CloudWatch.

MetricUnit is a required field

MetricValue

Type: *string

The CloudWatch metric value.

MetricValue is a required field

RoleArn

Type: *string

The IAM role that allows access to the CloudWatch metric.

RoleArn is a required field

Method

GoString

func (s CloudwatchMetricAction) GoString() string

GoString returns the string representation

SetMetricName

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

SetMetricName sets the MetricName field's value.

SetMetricNamespace

func (s *CloudwatchMetricAction) SetMetricNamespace(v string) *CloudwatchMetricAction

SetMetricNamespace sets the MetricNamespace field's value.

SetMetricTimestamp

func (s *CloudwatchMetricAction) SetMetricTimestamp(v string) *CloudwatchMetricAction

SetMetricTimestamp sets the MetricTimestamp field's value.

SetMetricUnit

func (s *CloudwatchMetricAction) SetMetricUnit(v string) *CloudwatchMetricAction

SetMetricUnit sets the MetricUnit field's value.

SetMetricValue

func (s *CloudwatchMetricAction) SetMetricValue(v string) *CloudwatchMetricAction

SetMetricValue sets the MetricValue field's value.

SetRoleArn

func (s *CloudwatchMetricAction) SetRoleArn(v string) *CloudwatchMetricAction

SetRoleArn sets the RoleArn field's value.

String

func (s CloudwatchMetricAction) String() string

String returns the string representation

Validate

func (s *CloudwatchMetricAction) Validate() error

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

On this page: