Amazon IoT Device Management · Schema
MetricToRetain
The metric you want to retain. Dimensions are optional.
Amazon Web ServicesDevice ManagementFleet ManagementIoTOTA Updates
Properties
| Name | Type | Description |
|---|---|---|
| metric | object | |
| metricDimension | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-metric-to-retain-schema.json",
"title": "MetricToRetain",
"description": "The metric you want to retain. Dimensions are optional.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/amazon-iot-device-management-security-profiles-api-openapi.yml#/components/schemas/MetricToRetain",
"type": "object",
"required": [
"metric"
],
"properties": {
"metric": {
"allOf": [
{
"$ref": "#/$defs/BehaviorMetric"
},
{
"description": "What is measured by the behavior."
}
]
},
"metricDimension": {
"allOf": [
{
"$ref": "#/$defs/MetricDimension"
},
{
"description": "The dimension of a metric. This can't be used with custom metrics."
}
]
}
},
"$defs": {
"BehaviorMetric": {
"type": "string"
},
"DimensionName": {
"type": "string",
"pattern": "[a-zA-Z0-9:_-]+",
"minLength": 1,
"maxLength": 128
},
"DimensionValueOperator": {
"type": "string",
"enum": [
"IN",
"NOT_IN"
]
},
"MetricDimension": {
"type": "object",
"required": [
"dimensionName"
],
"properties": {
"dimensionName": {
"allOf": [
{
"$ref": "#/$defs/DimensionName"
},
{
"description": "A unique identifier for the dimension."
}
]
},
"operator": {
"allOf": [
{
"$ref": "#/$defs/DimensionValueOperator"
},
{
"description": "Defines how the <code>dimensionValues</code> of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the <code>IN</code> operator, a message will be counted only if its topic matches one of the topic filters. With <code>NOT_IN</code> operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is <code>null</code>), it will be interpreted as <code>IN</code>."
}
]
}
},
"description": "The dimension of a metric."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-iot-device-management-metric-to-retain"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.