Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.
MetricDimension is a JSON Structure definition published by Amazon Pinpoint, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-pinpoint/refs/heads/main/json-structure/amazon-pinpoint-metric-dimension-structure.json",
"name": "MetricDimension",
"description": "Specifies metric-based criteria for including or excluding endpoints from a segment. These criteria derive from custom metrics that you define for endpoints.",
"type": "object",
"properties": {
"ComparisonOperator": {
"allOf": [
{
"$ref": "#/components/schemas/__string"
},
{
"description": "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."
}
]
},
"Value": {
"allOf": [
{
"$ref": "#/components/schemas/__double"
},
{
"description": "The value to compare."
}
]
}
},
"required": [
"ComparisonOperator",
"Value"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.