{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iot-core/refs/heads/main/json-schema/iot-core-metric-to-retain-schema.json", "title": "MetricToRetain", "description": "The metric you want to retain. Dimensions are optional.", "type": "object", "properties": { "metric": { "allOf": [ { "$ref": "#/components/schemas/BehaviorMetric" }, { "description": "What is measured by the behavior." } ] }, "metricDimension": { "allOf": [ { "$ref": "#/components/schemas/MetricDimension" }, { "description": "The dimension of a metric. This can't be used with custom metrics." } ] } }, "required": [ "metric" ] }