AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

Class: Aws::Pinpoint::Types::MetricDimension

  • Object
show all
Defined in:



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

  comparison_operator: "__string", # required
  value: 1.0, # required

Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.

Instance Attribute Summary collapse

Instance Attribute Details


The operator to use when comparing metric values. Valid values are: GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, and EQUAL.


  • (String)

    The operator to use when comparing metric values.


The value to compare.


  • (Float)

    The value to compare.