You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::IoT::Types::CloudwatchMetricAction

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CloudwatchMetricAction as input to an Aws::Client method, you can use a vanilla Hash:

{
  role_arn: "AwsArn", # required
  metric_namespace: "String", # required
  metric_name: "String", # required
  metric_value: "String", # required
  metric_unit: "String", # required
  metric_timestamp: "String",
}

Describes an action that captures a CloudWatch metric.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#metric_nameString

The CloudWatch metric name.

Returns:

  • (String)

    The CloudWatch metric name.

#metric_namespaceString

The CloudWatch metric namespace name.

Returns:

  • (String)

    The CloudWatch metric namespace name.

#metric_timestampString

An optional Unix timestamp.

Returns:

  • (String)

    An optional [Unix timestamp][1].

#metric_unitString

The metric unit supported by CloudWatch.

Returns:

  • (String)

    The [metric unit][1] supported by CloudWatch.

#metric_valueString

The CloudWatch metric value.

Returns:

  • (String)

    The CloudWatch metric value.

#role_arnString

The IAM role that allows access to the CloudWatch metric.

Returns:

  • (String)

    The IAM role that allows access to the CloudWatch metric.