{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-list-metric-values-response-schema.json",
  "title": "ListMetricValuesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-metric-values-api-openapi.yml#/components/schemas/ListMetricValuesResponse",
  "type": "object",
  "properties": {
    "metricDatumList": {
      "allOf": [
        {
          "$ref": "#/$defs/MetricDatumList"
        },
        {
          "description": "The data the thing reports for the metric during the specified time period."
        }
      ]
    },
    "nextToken": {
      "allOf": [
        {
          "$ref": "#/$defs/NextToken"
        },
        {
          "description": "A token that can be used to retrieve the next set of results, or <code>null</code> if there are no additional results."
        }
      ]
    }
  },
  "$defs": {
    "Cidr": {
      "type": "string",
      "pattern": "[a-fA-F0-9:\\.\\/]+",
      "minLength": 2,
      "maxLength": 43
    },
    "Cidrs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Cidr"
      }
    },
    "MetricDatum": {
      "type": "object",
      "properties": {
        "timestamp": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": "The time the metric value was reported."
            }
          ]
        },
        "value": {
          "allOf": [
            {
              "$ref": "#/$defs/MetricValue"
            },
            {
              "description": "The value reported for the metric."
            }
          ]
        }
      },
      "description": "A metric."
    },
    "MetricDatumList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetricDatum"
      }
    },
    "MetricValue": {
      "type": "object",
      "properties": {
        "count": {
          "allOf": [
            {
              "$ref": "#/$defs/UnsignedLong"
            },
            {
              "description": "If the <code>comparisonOperator</code> calls for a numeric value, use this to specify that numeric value to be compared with the <code>metric</code>."
            }
          ]
        },
        "cidrs": {
          "allOf": [
            {
              "$ref": "#/$defs/Cidrs"
            },
            {
              "description": "If the <code>comparisonOperator</code> calls for a set of CIDRs, use this to specify that set to be compared with the <code>metric</code>."
            }
          ]
        },
        "ports": {
          "allOf": [
            {
              "$ref": "#/$defs/Ports"
            },
            {
              "description": "If the <code>comparisonOperator</code> calls for a set of ports, use this to specify that set to be compared with the <code>metric</code>."
            }
          ]
        },
        "number": {
          "allOf": [
            {
              "$ref": "#/$defs/Number"
            },
            {
              "description": " The numeral value of a metric. "
            }
          ]
        },
        "numbers": {
          "allOf": [
            {
              "$ref": "#/$defs/NumberList"
            },
            {
              "description": " The numeral values of a metric. "
            }
          ]
        },
        "strings": {
          "allOf": [
            {
              "$ref": "#/$defs/StringList"
            },
            {
              "description": " The string values of a metric. "
            }
          ]
        }
      },
      "description": "The value to be compared with the <code>metric</code>."
    },
    "NextToken": {
      "type": "string"
    },
    "Number": {
      "type": "number",
      "format": "double"
    },
    "NumberList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Number"
      }
    },
    "Port": {
      "type": "integer",
      "minimum": 0,
      "maximum": 65535
    },
    "Ports": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Port"
      }
    },
    "StringList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/stringValue"
      }
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "UnsignedLong": {
      "type": "integer",
      "minimum": 0
    },
    "stringValue": {
      "type": "string"
    }
  }
}