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

Class: Aws::IoT::Types::MetricValue

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb

Overview

Note:

When making an API call, you may pass MetricValue data as a hash:

{
  count: 1,
  cidrs: ["Cidr"],
  ports: [1],
}

The value to be compared with the metric.

Instance Attribute Summary collapse

Instance Attribute Details

#cidrsArray<String>

If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric.

Returns:

  • (Array<String>)


8826
8827
8828
8829
8830
8831
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 8826

class MetricValue < Struct.new(
  :count,
  :cidrs,
  :ports)
  include Aws::Structure
end

#countInteger

If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric.

Returns:

  • (Integer)


8826
8827
8828
8829
8830
8831
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 8826

class MetricValue < Struct.new(
  :count,
  :cidrs,
  :ports)
  include Aws::Structure
end

#portsArray<Integer>

If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric.

Returns:

  • (Array<Integer>)


8826
8827
8828
8829
8830
8831
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 8826

class MetricValue < Struct.new(
  :count,
  :cidrs,
  :ports)
  include Aws::Structure
end