{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-create-custom-metric-response-schema.json",
  "title": "CreateCustomMetricResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-custom-metric-api-openapi.yml#/components/schemas/CreateCustomMetricResponse",
  "type": "object",
  "properties": {
    "metricName": {
      "allOf": [
        {
          "$ref": "#/$defs/MetricName"
        },
        {
          "description": " The name of the custom metric to be used in the metric report. "
        }
      ]
    },
    "metricArn": {
      "allOf": [
        {
          "$ref": "#/$defs/CustomMetricArn"
        },
        {
          "description": " The Amazon Resource Number (ARN) of the custom metric. For example, <code>arn:<i>aws-partition</i>:iot:<i>region</i>:<i>accountId</i>:custommetric/<i>metricName</i> </code> "
        }
      ]
    }
  },
  "$defs": {
    "CustomMetricArn": {
      "type": "string"
    },
    "MetricName": {
      "type": "string",
      "pattern": "[a-zA-Z0-9:_-]+",
      "minLength": 1,
      "maxLength": 128
    }
  }
}