{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-get-statistics-response-schema.json",
  "title": "GetStatisticsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-indices-api-openapi.yml#/components/schemas/GetStatisticsResponse",
  "type": "object",
  "properties": {
    "statistics": {
      "allOf": [
        {
          "$ref": "#/$defs/Statistics"
        },
        {
          "description": "The statistics returned by the Fleet Indexing service based on the query and aggregation field."
        }
      ]
    }
  },
  "$defs": {
    "Average": {
      "type": "number",
      "format": "double"
    },
    "Count": {
      "type": "integer"
    },
    "Maximum": {
      "type": "number",
      "format": "double"
    },
    "Minimum": {
      "type": "number",
      "format": "double"
    },
    "Statistics": {
      "type": "object",
      "properties": {
        "count": {
          "allOf": [
            {
              "$ref": "#/$defs/Count"
            },
            {
              "description": "The count of things that match the query string criteria and contain a valid aggregation field value."
            }
          ]
        },
        "average": {
          "allOf": [
            {
              "$ref": "#/$defs/Average"
            },
            {
              "description": "The average of the aggregated field values."
            }
          ]
        },
        "sum": {
          "allOf": [
            {
              "$ref": "#/$defs/Sum"
            },
            {
              "description": "The sum of the aggregated field values."
            }
          ]
        },
        "minimum": {
          "allOf": [
            {
              "$ref": "#/$defs/Minimum"
            },
            {
              "description": "The minimum aggregated field value."
            }
          ]
        },
        "maximum": {
          "allOf": [
            {
              "$ref": "#/$defs/Maximum"
            },
            {
              "description": "The maximum aggregated field value."
            }
          ]
        },
        "sumOfSquares": {
          "allOf": [
            {
              "$ref": "#/$defs/SumOfSquares"
            },
            {
              "description": "The sum of the squares of the aggregated field values."
            }
          ]
        },
        "variance": {
          "allOf": [
            {
              "$ref": "#/$defs/Variance"
            },
            {
              "description": "The variance of the aggregated field values."
            }
          ]
        },
        "stdDeviation": {
          "allOf": [
            {
              "$ref": "#/$defs/StdDeviation"
            },
            {
              "description": "The standard deviation of the aggregated field values."
            }
          ]
        }
      },
      "description": "A map of key-value pairs for all supported statistics. For issues with missing or unexpected values for this API, consult <a href=\"https://docs.aws.amazon.com/iot/latest/developerguide/fleet-indexing-troubleshooting.html\"> Fleet indexing troubleshooting guide</a>."
    },
    "StdDeviation": {
      "type": "number",
      "format": "double"
    },
    "Sum": {
      "type": "number",
      "format": "double"
    },
    "SumOfSquares": {
      "type": "number",
      "format": "double"
    },
    "Variance": {
      "type": "number",
      "format": "double"
    }
  }
}